rename index file for collection and added accessiblity for some components

This commit is contained in:
somrat sorkar
2023-05-15 12:19:03 +06:00
parent 60c98d631b
commit cc0e52e48b
11 changed files with 53 additions and 32 deletions
+1 -1
View File
@@ -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");
---
+1 -1
View File
@@ -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");
+1 -1
View File
@@ -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");