feat: move articles link from 'blog/' to 'post/' paths
This commit is contained in:
parent
350f6f3865
commit
7e5f8ce06f
9 changed files with 15 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
import { getCollection } from 'astro:content';
|
||||
|
||||
export async function GET() {
|
||||
const posts = await getCollection('blog');
|
||||
const posts = await getCollection('posts');
|
||||
const searchIndex = posts.map(post => ({
|
||||
title: post.data.title,
|
||||
description: post.data.description,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue