mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 01:03:37 +01:00
script fix
This commit is contained in:
parent
3b25ae2282
commit
4b20ce877b
@ -2,7 +2,7 @@ import fs from 'node:fs/promises'
|
||||
import { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { slugify } from '../../src/lib/slugify'
|
||||
import { slugify } from '../../src/lib/slugify/slugify.js'
|
||||
import type { Ora } from 'ora'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
@ -1,7 +1,6 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
||||
import { slugify } from '../../src/lib/slugify'
|
||||
import { readOutExif } from '@lib/exif'
|
||||
import { existsSync, mkdirSync, readFileSync, promises as fs } from 'node:fs'
|
||||
import { slugify } from '../../src/lib/slugify/slugify.js'
|
||||
import { readOutExif } from '../../src/lib/exif/readOutExif.js'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import type { Ora } from 'ora'
|
||||
|
@ -46,7 +46,7 @@ const photos = (await loadAndFormatCollection('photos')).slice(
|
||||
<div class="articles">
|
||||
{articles.map((article) => <PostTeaser post={article} hideDate />)}
|
||||
</div>
|
||||
<More href="/archive/1">All Articles & Links</More>
|
||||
<More href="/archive/1/">All Articles & Links</More>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
@ -55,6 +55,6 @@ const photos = (await loadAndFormatCollection('photos')).slice(
|
||||
{photos.map((photo) => <PhotoTeaser post={photo} />)}
|
||||
</div>
|
||||
|
||||
<More href="/photos/1">All Photos</More>
|
||||
<More href="/photos/1/">All Photos</More>
|
||||
</section>
|
||||
</LayoutBase>
|
||||
|
Loading…
Reference in New Issue
Block a user