site/themes/rb/layouts/_default/single.html

22 lines
650 B
HTML
Raw Permalink Normal View History

2024-06-05 20:43:19 +02:00
{{ define "main" }}
<article>
<header id="post-header">
<h1>{{ .Title }}</h1>
{{- if compare.Ne .Parent.Title "Home" -}}
2024-06-05 20:43:19 +02:00
<div>
2024-06-05 21:43:47 +02:00
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
</br>
{{- end -}}
2024-06-05 20:43:19 +02:00
{{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
{{ else }}
<time>{{ .Lastmod | time.Format (i18n "post.updated") }}</time>
{{ end }}
{{- end -}}
</div>
</header>
{{- .Content -}}
</article>
{{ end }}