format code

This commit is contained in:
somrat sorkar
2023-05-21 12:46:07 +06:00
parent b169d93ec9
commit 38dad16448
3 changed files with 3 additions and 9 deletions
+1 -3
View File
@@ -7,9 +7,7 @@ import { getSinglePage } from "@/lib/contentParser.astro";
import { slugify } from "@/lib/utils/textConverter";
import { Image } from "@astrojs/image/components";
export async function getStaticPaths(): Promise<
{ params: { single: string }; props: { author: string } }[]
> {
export async function getStaticPaths() {
const authors = await getSinglePage("authors");
const paths = authors.map((author) => ({
+1 -3
View File
@@ -7,9 +7,7 @@ import { getTaxonomy } from "@/lib/taxonomyParser.astro";
import taxonomyFilter from "@/lib/utils/taxonomyFilter";
import PageHeader from "@/partials/PageHeader.astro";
export async function getStaticPaths(): Promise<
{ params: { category: string } }[]
> {
export async function getStaticPaths() {
const categories = await getTaxonomy(
config.settings.blog_folder,
"categories"
+1 -3
View File
@@ -4,9 +4,7 @@ import Base from "@/layouts/Base.astro";
import PostSingle from "@/layouts/PostSingle.astro";
import { getSinglePage } from "@/lib/contentParser.astro";
export async function getStaticPaths(): Promise<
{ params: { single: string }; props: { post: any } }[]
> {
export async function getStaticPaths() {
const posts = await getSinglePage(config.settings.blog_folder);
const paths = posts.map((post) => ({