modified contentParser and index.md file for blog and author, fixed issue #2

This commit is contained in:
somrat sorkar
2023-05-11 13:06:14 +06:00
parent e58aeab8a1
commit ed7a32efb6
8 changed files with 6 additions and 6 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
@@ -1,9 +1,9 @@
---
import { Image } from "@astrojs/image/components";
import Base from "@/layouts/Base.astro";
import { markdownify } from "@/lib/utils/textConverter";
import CallToAction from "@/partials/CallToAction.astro";
import Testimonial from "@/partials/Testimonial.astro";
import { Image } from "@astrojs/image/components";
import { getEntryBySlug } from "astro:content";
import { FaCheck } from "react-icons/fa/index.js";
+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");