added slide component, twwek some pages, and enchanced docs

This commit is contained in:
2024-10-23 16:14:34 +09:00
parent e99db9f8bd
commit 8247b05192
72 changed files with 985 additions and 300 deletions

View File

@@ -14,6 +14,11 @@ if (data.value === undefined || data.value === null) {
});
}
const pankuzuListPageName = (): string => {
const postedDate = new Date(data.value?.date as number);
return `${postedDate.getFullYear()}-${postedDate.getMonth() + 1}-${postedDate.getDate()}`;
};
onMounted(() => {
const article = document.getElementById("article");
const articleTitle = article?.getElementsByTagName("h1")[0];
@@ -30,7 +35,7 @@ onMounted(() => {
) as string;
useSeoMeta(
generateSeoMeta(
articleTitle?.innerText,
articleTitle?.innerText as string,
cardContentConversion.innerText,
data.value?.coverImagePath || "/sera-logo-text.svg",
"article"
@@ -41,6 +46,7 @@ onMounted(() => {
<template>
<PageTop text="News" image-path="/images/news-top.jpg" />
<PankuzuList :current-page-name="pankuzuListPageName()" />
<main>
<img :src="(data?.coverImagePath as string) || '/sera-logo-text.svg'" />
<div