45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
{{- define "head" }}
|
|
<meta name="description" content="{{ .Summary }}">
|
|
{{ end }}
|
|
{{- define "main" }}
|
|
{{- $me := .Site.Params.Me -}}
|
|
<article class="h-entry">
|
|
<header>
|
|
<h1 class="p-name">{{ .Title }}</h1>
|
|
<aside>
|
|
<p>
|
|
By <a class="p-author h-card" href="{{ .Site.BaseURL}}">
|
|
{{ $me.Name }}
|
|
</a>
|
|
</p>
|
|
<time class="dt-published"
|
|
datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">
|
|
{{ .Date.Format "02 January, 2006" }}
|
|
</time>
|
|
{{ if .Lastmod | and (.Lastmod.After .Date) }}
|
|
, edited <time
|
|
class="dt-updated"
|
|
datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z" }}">
|
|
{{ .Lastmod.Format "02 January, 2006" }}
|
|
</time>
|
|
{{ end }}
|
|
<details>
|
|
<summary>Table of Contents</summary>
|
|
{{ .TableOfContents }}
|
|
</details>
|
|
<p>
|
|
Tagged:
|
|
{{- range $tag := .Param "tags" -}}
|
|
<a href="/tags/{{ $tag }}">
|
|
#<span class="p-category">{{ $tag }}</span>
|
|
</a>
|
|
{{- end -}}
|
|
</p>
|
|
</aside>
|
|
</header>
|
|
<section class="e-content">
|
|
{{ .Content }}
|
|
</section>
|
|
</article>
|
|
{{- end }}
|