mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +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 { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url'
|
||||||
import { slugify } from '../../src/lib/slugify'
|
import { slugify } from '../../src/lib/slugify/slugify.js'
|
||||||
import type { Ora } from 'ora'
|
import type { Ora } from 'ora'
|
||||||
|
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import fs from 'node:fs/promises'
|
import { existsSync, mkdirSync, readFileSync, promises as fs } from 'node:fs'
|
||||||
import { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
import { slugify } from '../../src/lib/slugify/slugify.js'
|
||||||
import { slugify } from '../../src/lib/slugify'
|
import { readOutExif } from '../../src/lib/exif/readOutExif.js'
|
||||||
import { readOutExif } from '@lib/exif'
|
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url'
|
||||||
import type { Ora } from 'ora'
|
import type { Ora } from 'ora'
|
||||||
|
@ -46,7 +46,7 @@ const photos = (await loadAndFormatCollection('photos')).slice(
|
|||||||
<div class="articles">
|
<div class="articles">
|
||||||
{articles.map((article) => <PostTeaser post={article} hideDate />)}
|
{articles.map((article) => <PostTeaser post={article} hideDate />)}
|
||||||
</div>
|
</div>
|
||||||
<More href="/archive/1">All Articles & Links</More>
|
<More href="/archive/1/">All Articles & Links</More>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
@ -55,6 +55,6 @@ const photos = (await loadAndFormatCollection('photos')).slice(
|
|||||||
{photos.map((photo) => <PhotoTeaser post={photo} />)}
|
{photos.map((photo) => <PhotoTeaser post={photo} />)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<More href="/photos/1">All Photos</More>
|
<More href="/photos/1/">All Photos</More>
|
||||||
</section>
|
</section>
|
||||||
</LayoutBase>
|
</LayoutBase>
|
||||||
|
Loading…
Reference in New Issue
Block a user