turn verticalposts shortcode into partial

This commit is contained in:
Vri 🌈 2023-03-18 20:55:12 +01:00
parent e115ebd7ca
commit df671adc3a
Signed by: vrifox
GPG key ID: D40098E5B60B2197
10 changed files with 68 additions and 64 deletions

View file

@ -4,17 +4,28 @@
{{- end -}}
{{- define "header" }}
<header id="blog-header">
<h1 class="title">{{ .Title }}</h1>
<p>
<span id="blog-post-published" title="{{ i18n "blog-post-published" }} {{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</span>
<span id="blog-post-updated" title="{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006, 15:04 MST" }}">{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006" }}</span>
</p>
</header>
<header id="blog-header">
<h1 class="title">{{ .Title }}</h1>
<p>
<span
id="blog-post-published"
title="{{ i18n "blog-post-published" }} {{ .Date | time.Format "2. January 2006, 15:04 MST" }}"
>
{{ .Date | time.Format "2. January 2006" }}
</span>
<span
id="blog-post-updated"
title="{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006, 15:04 MST" }}"
>
{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006" }}
</span>
</p>
</header>
{{ end }}
{{- define "main" }}
<main>
{{ .Content -}}
{{ partial "moreposts.html" . }}
</main>
{{- end }}