diff --git a/src/app/(slug)/blog/page.tsx b/src/app/(slug)/blog/page.tsx
index 79a95c5..75526ad 100644
--- a/src/app/(slug)/blog/page.tsx
+++ b/src/app/(slug)/blog/page.tsx
@@ -41,15 +41,14 @@ export default async function Home({
))}
-
{img.title}
{new Date(img.created).toLocaleDateString()}
diff --git a/src/app/(slug)/characters/page.tsx b/src/app/(slug)/characters/page.tsx
index b5e1309..912677e 100644
--- a/src/app/(slug)/characters/page.tsx
+++ b/src/app/(slug)/characters/page.tsx
@@ -41,7 +41,7 @@ export default async function Home({
return (
{character.name}
{character.pronouns}
@@ -50,15 +50,14 @@ export default async function Home({
);
})}
-
+
1}>
Previous
- {" "}
Next
-
+
)
}
\ No newline at end of file
diff --git a/src/app/(slug)/characters/style.module.css b/src/app/(slug)/characters/style.module.css
index ab7940b..13b01d5 100644
--- a/src/app/(slug)/characters/style.module.css
+++ b/src/app/(slug)/characters/style.module.css
@@ -11,6 +11,9 @@
}
.CharacterContainer {
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
aspect-ratio: 1/1;
overflow: hidden;
padding: 16px;
diff --git a/src/app/(slug)/gallery/[slug]/page.tsx b/src/app/(slug)/gallery/[slug]/page.tsx
index 9657b97..6f8b333 100644
--- a/src/app/(slug)/gallery/[slug]/page.tsx
+++ b/src/app/(slug)/gallery/[slug]/page.tsx
@@ -2,6 +2,9 @@ import { MainLayout } from "@/layout/MainLayout/MainLayout";
import { notFound } from "next/navigation";
import Markdown from "react-markdown";
import rehypeRaw from "rehype-raw";
+import styles from "../style.module.css";
+import Link from "next/link";
+import { ConditionalNull } from "@/components/utility/Conditional";
export default async function Home({
params
@@ -13,6 +16,32 @@ export default async function Home({
const blog = await fetch(`https://img.abtmtr.link/api/collections/mtr/posts/${params.slug}`, { cache: 'no-store' }).then(x=>x.json());
if (blog.data == null)
return notFound();
+
+ let allCharacters:{
+ id: string,
+ name: string,
+ description?: string[],
+ picture: string,
+ gender: string,
+ pronunciation: string,
+ pronouns: string,
+ spec?: string,
+ species: string,
+ age: number,
+ height: number,
+ relationships: {
+ id: string,
+ status: string,
+ }[]
+ }[] = [];
+
+ await (blog.data.tags.reduce(async (p:Promise
, tag:string) => {
+ const tagCharacter = await fetch(`https://blog.abtmtr.link/api/collections/characters/posts/${tag}`, { next: { revalidate: 1800 } }).then(x=>x.json());
+ if (tagCharacter.data == null) return;
+
+ allCharacters.push(JSON.parse(tagCharacter.data.body.replace(/[“”]/g, "\"")));
+ }, Promise.resolve()));
+
return (
{blog.data.title}
@@ -22,6 +51,23 @@ export default async function Home({
}}>
{blog.data.body}
+
{post.title}
Posted {new Date(post.created).toLocaleDateString()}
@@ -39,15 +39,14 @@ export default async function Home({
))}
-