metadata
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Michael Zhang 2023-08-31 10:37:26 -05:00
parent b892dfa000
commit 322441a144
2 changed files with 13 additions and 0 deletions

View file

@ -10,6 +10,7 @@ import "../styles/global.scss";
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Michael Zhang</title> <title>Michael Zhang</title>
<slot name="head" />
</head> </head>
<body> <body>

View file

@ -23,9 +23,21 @@ let heroImage;
if (heroImagePath) { if (heroImagePath) {
heroImage = await getImage({ src: heroImagePath }); heroImage = await getImage({ src: heroImagePath });
} }
const datestamp = post.data.date.toLocaleDateString(undefined, {
year: "numeric",
month: "short",
day: "numeric",
});
--- ---
<BaseLayout> <BaseLayout>
<!-- <meta slot="head" name="description" content="{{ .Summary }}" /> -->
<meta slot="head" property="og:title" content={post.data.title} />
<!-- <meta slot="head" property="og:url" content="{{ .Permalink }}" /> -->
<!-- <meta slot="head" property="og:description" content="{{ .Summary }}" /> -->
<meta slot="head" property="og:type" content="article" />
<meta slot="head" property="article:published_time" content={datestamp} />
<div class="post-container"> <div class="post-container">
<h1 class="post-title">{post.data.title}</h1> <h1 class="post-title">{post.data.title}</h1>