File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11---
22import { getCollection , render } from ' astro:content'
33
4- import { slugify } from ' ./index.astro '
4+ import { slugify } from ' ../../utils/content '
55
66export async function getStaticPaths() {
77 const blogEntries = await getCollection (' posts' )
Original file line number Diff line number Diff line change 11---
2- import Layout from ' ../../components/layouts/base.astro'
3- import { slugify } from ' ./slugify'
4-
5- import type { CollectionEntry } from ' astro:content'
62import { getCollection } from ' astro:content'
3+ import Layout from ' ../../components/layouts/base.astro'
4+ import { slugify } from ' ../../utils/content'
75
86const frontmatter = {
97 title: ' Articles' ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getCollection } from 'astro:content'
22import rss from '@astrojs/rss'
33import type { APIContext } from 'astro'
44import { siteMetadata } from '../config/site'
5- import { slugify } from './posts/slugify '
5+ import { slugify } from '../utils/content '
66
77export async function GET ( context : APIContext ) {
88 const posts = await getCollection ( 'posts' )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments