1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 01:03:37 +01:00

script fix

This commit is contained in:
Matthias Kretschmann 2023-10-06 11:22:45 +01:00
parent 3b25ae2282
commit 4b20ce877b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 6 additions and 7 deletions

View File

@ -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))

View File

@ -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'

View File

@ -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>