metadata
ci/woodpecker/push/woodpecker Pipeline was successful Details

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 name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Michael Zhang</title>
<slot name="head" />
</head>
<body>

View File

@ -23,9 +23,21 @@ let heroImage;
if (heroImagePath) {
heroImage = await getImage({ src: heroImagePath });
}
const datestamp = post.data.date.toLocaleDateString(undefined, {
year: "numeric",
month: "short",
day: "numeric",
});
---
<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">
<h1 class="post-title">{post.data.title}</h1>