mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
format code
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user