mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-13 11:46:17 +09:00
rename index file for collection and added accessiblity for some components
This commit is contained in:
@@ -5,7 +5,7 @@ import { getSinglePage } from "@/lib/contentParser.astro";
|
||||
import PageHeader from "@/partials/PageHeader.astro";
|
||||
import { getEntryBySlug } from "astro:content";
|
||||
|
||||
const authorIndex = await getEntryBySlug<any, string>("authors", "index");
|
||||
const authorIndex = await getEntryBySlug<any, string>("authors", "-index");
|
||||
const authors = await getSinglePage("authors");
|
||||
---
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import PostSidebar from "@/partials/PostSidebar.astro";
|
||||
import { getEntryBySlug } from "astro:content";
|
||||
|
||||
const { blog_folder } = config.settings;
|
||||
const postIndex = await getEntryBySlug<any, string>(blog_folder, "index");
|
||||
const postIndex = await getEntryBySlug<any, string>(blog_folder, "-index");
|
||||
const posts = await getSinglePage(blog_folder);
|
||||
const allCategories = await getAllTaxonomy(blog_folder, "categories");
|
||||
const categories = await getTaxonomy(blog_folder, "categories");
|
||||
|
||||
@@ -12,7 +12,7 @@ import { getEntryBySlug } from "astro:content";
|
||||
|
||||
const { blog_folder } = config.settings;
|
||||
const { slug } = Astro.params;
|
||||
const postIndex = await getEntryBySlug<any, string>(blog_folder, "index");
|
||||
const postIndex = await getEntryBySlug<any, string>(blog_folder, "-index");
|
||||
const posts = await getSinglePage(blog_folder);
|
||||
const allCategories = await getAllTaxonomy(blog_folder, "categories");
|
||||
const categories = await getTaxonomy(blog_folder, "categories");
|
||||
|
||||
Reference in New Issue
Block a user