Change posts.js to blog.js and improve default values
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
import Grid from '~/components/blog/Grid.astro';
|
||||
|
||||
import { getBlogPermalink } from '~/utils/permalinks';
|
||||
import { findPostsByIds } from '~/utils/posts';
|
||||
import { findPostsByIds } from '~/utils/blog';
|
||||
|
||||
const ids = [
|
||||
'get-started-website-with-astro-tailwind-css.md',
|
||||
|
@ -2,7 +2,7 @@
|
||||
import Grid from '~/components/blog/Grid.astro';
|
||||
|
||||
import { getBlogPermalink } from '~/utils/permalinks';
|
||||
import { findLatestPosts } from '~/utils/posts';
|
||||
import { findLatestPosts } from '~/utils/blog';
|
||||
|
||||
const count = 4;
|
||||
const posts = await findLatestPosts({ count });
|
||||
|
Reference in New Issue
Block a user