holy/layouts/_default/single.html

17 lines
572 B
HTML
Raw Normal View History

2022-04-05 21:31:50 +00:00
{{ define "main" }}
2022-04-11 20:09:26 +00:00
<article class="box:border-box py:64 w:full">
2022-04-11 17:33:41 +00:00
<header class="mb:32">
2022-04-07 20:15:42 +00:00
<div class="font:40 font:extrabold">{{ .Title }}</div>
2022-04-11 20:09:26 +00:00
<div class="mt:16 font:fade-70">
2022-04-05 21:31:50 +00:00
{{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }}
2022-04-07 20:15:42 +00:00
<time>{{ .Date | time.Format (":date_medium") }}</time>
2022-04-05 21:31:50 +00:00
{{ else }}
2022-04-07 20:15:42 +00:00
<time>{{ .Lastmod | time.Format (":date_medium") }}</time>
2022-04-05 21:31:50 +00:00
{{ end }}
{{- end -}}
</div>
</header>
2022-04-12 19:01:56 +00:00
{{- partial "prose.html" . -}}
2022-04-05 21:31:50 +00:00
</article>
2022-04-07 20:15:42 +00:00
{{ end }}