This commit is contained in:
parent
b892dfa000
commit
322441a144
2 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue