Skip to content

Commit

Permalink
script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Oct 6, 2023
1 parent 3b25ae2 commit 4b20ce8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/new/createArticlePost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
7 changes: 3 additions & 4 deletions scripts/new/createPhotoPost.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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>

0 comments on commit 4b20ce8

Please sign in to comment.