feat: add remaining blogs

This commit is contained in:
2022-08-10 18:05:40 -04:00
parent ec6a5df04b
commit 81a7f8b541
28 changed files with 715 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ import { calcReadingTime, getPrettyDate } from "@/shared/metadata";
type GeneralParsedContent = BlogParsedContent | StoryParsedContent;
const route = useRoute();
definePageMeta({
layout: "withtop",
});
// we're not using ContentDoc because i need control
const doc = await queryContent<GeneralParsedContent>(route.path).findOne();

View File

@@ -2,6 +2,7 @@
import type { BlogParsedContent } from "@/shared/types";
useTitle("Blog");
definePageMeta({ layout: "withtop" });
// TODO: paginate stories
const docs = await queryContent<BlogParsedContent>("/blog")

View File

@@ -2,6 +2,7 @@
import type { StoryParsedContent } from "@/shared/types";
useTitle("Stories");
definePageMeta({ layout: "withtop" });
// TODO: paginate stories
const docs = await queryContent<StoryParsedContent>("/stories")

View File

@@ -3,6 +3,7 @@ import { tagInfo, type TagData } from "@/data/tagInfo";
import type { BlogParsedContent } from "@/shared/types";
const route = useRoute();
definePageMeta({ layout: "withtop" });
const tag =
typeof route.params.tag === "string" ? route.params.tag : route.params.tag[0];

View File

@@ -3,6 +3,7 @@ import { tagInfo, type TagData } from "@/data/tagInfo";
import type { StoryParsedContent } from "@/shared/types";
const route = useRoute();
definePageMeta({ layout: "withtop" });
const tag =
typeof route.params.tag === "string" ? route.params.tag : route.params.tag[0];