45 lines
1.6 KiB
Cheetah
45 lines
1.6 KiB
Cheetah
|
{{template "base" .}}
|
||
|
|
||
|
{{define "title"}}{{.PageTitle}}{{end}}
|
||
|
|
||
|
{{define "meta"}}
|
||
|
<meta name="description" content="{{if .Header.Bio}}{{.Header.Bio}}{{else}}{{.Header.Title}}{{end}}" />
|
||
|
|
||
|
<meta property="og:type" content="website">
|
||
|
<meta property="og:site_name" content="{{.Site.Domain}}">
|
||
|
<meta property="og:url" content="{{.URL}}">
|
||
|
<meta property="og:title" content="{{.Header.Title}}">
|
||
|
{{if .Header.Bio}}<meta property="og:description" content="{{.Header.Bio}}">{{end}}
|
||
|
<meta property="og:image:width" content="300" />
|
||
|
<meta property="og:image:height" content="300" />
|
||
|
<meta itemprop="image" content="https://{{.Site.Domain}}/card.png" />
|
||
|
<meta property="og:image" content="https://{{.Site.Domain}}/card.png" />
|
||
|
|
||
|
<meta property="twitter:card" content="summary">
|
||
|
<meta property="twitter:url" content="{{.URL}}">
|
||
|
<meta property="twitter:title" content="{{.Header.Title}}">
|
||
|
{{if .Header.Bio}}<meta property="twitter:description" content="{{.Header.Bio}}">{{end}}
|
||
|
<meta name="twitter:image" content="https://{{.Site.Domain}}/card.png" />
|
||
|
<meta name="twitter:image:src" content="https://{{.Site.Domain}}/card.png" />
|
||
|
{{end}}
|
||
|
|
||
|
{{define "body"}}
|
||
|
<header class="text-center">
|
||
|
<h1 class="text-2xl font-bold">{{.Header.Title}}</h1>
|
||
|
<hr />
|
||
|
</header>
|
||
|
<main>
|
||
|
<section class="posts">
|
||
|
{{range .Posts}}
|
||
|
<article>
|
||
|
<div class="flex items-center">
|
||
|
<time datetime="{{.PublishAtISO}}" class="font-italic text-sm post-date">{{.PublishAt}}</time>
|
||
|
<h2 class="font-bold flex-1"><a href="{{.URL}}">{{.Title}}</a></h2>
|
||
|
</div>
|
||
|
</article>
|
||
|
{{end}}
|
||
|
</section>
|
||
|
</main>
|
||
|
{{template "footer" .}}
|
||
|
{{end}}
|