feat: move articles link from 'blog/' to 'post/' paths

This commit is contained in:
grassblock 2025-05-04 11:42:09 +08:00
parent 350f6f3865
commit 7e5f8ce06f
9 changed files with 15 additions and 9 deletions

View file

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