Simplify blog folders

This commit is contained in:
prototypa
2023-01-06 13:28:18 -05:00
parent bb57b3b63f
commit fa2be032e7
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export async function getStaticPaths({ paginate }) {
paginate( paginate(
posts.filter((post) => typeof post.category === 'string' && category === post.category.toLowerCase()), posts.filter((post) => typeof post.category === 'string' && category === post.category.toLowerCase()),
{ {
params: { category: cleanSlug(category), categories: CATEGORY_BASE || undefined }, params: { category: cleanSlug(category), blog: CATEGORY_BASE || undefined },
pageSize: BLOG.postsPerPage, pageSize: BLOG.postsPerPage,
props: { category }, props: { category },
} }

View File

@ -22,7 +22,7 @@ export async function getStaticPaths({ paginate }) {
paginate( paginate(
posts.filter((post) => Array.isArray(post.tags) && post.tags.find((elem) => elem.toLowerCase() === tag)), posts.filter((post) => Array.isArray(post.tags) && post.tags.find((elem) => elem.toLowerCase() === tag)),
{ {
params: { tag: cleanSlug(tag), tags: TAG_BASE || undefined }, params: { tag: cleanSlug(tag), blog: TAG_BASE || undefined },
pageSize: BLOG.postsPerPage, pageSize: BLOG.postsPerPage,
props: { tag }, props: { tag },
} }