blog/layouts/posts/single.html

40 lines
987 B
HTML
Raw Normal View History

2021-11-01 03:45:54 +00:00
{{- define "headExtra" -}}
<meta name="description" content="{{ .Summary }}" />
2021-11-01 04:08:54 +00:00
<meta property="og:description" content="{{ .Summary }}" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" />
2021-11-01 03:45:54 +00:00
{{- end -}}
2020-11-03 22:14:45 +00:00
{{- define "content" -}}
<a href="../">&laquo; back</a>
<h1 style="margin: 0;">{{ .Title }}</h1>
<small style="display: block; margin-bottom: 20px;">
Posted
2021-11-01 03:36:32 +00:00
on {{ .Date.Format "Mon Jan 02, 2006" }}
2020-11-03 22:14:45 +00:00
- {{ .ReadingTime }} min read
</small>
2021-07-06 05:52:05 +00:00
{{ if .Params.toc }}
<div class="toc">
<details>
<summary>Table of Contents</summary>
{{ .TableOfContents }}
</details>
</div>
{{ end }}
2021-05-04 12:02:15 +00:00
<div id="content" class="post-content">{{ .Content }}</div>
2020-11-03 22:14:45 +00:00
<hr />
<small>
2021-08-30 07:52:21 +00:00
Thanks for reading!
{{ if .Params.mastodon }}
Have comments? Discuss this post on <a href="{{ .Params.mastodon }}" target="_blank">Mastodon</a>.
{{ end }}
2020-11-03 22:14:45 +00:00
</small>
{{- end -}}