[blog] add article

Mainly for compatibility with Firefox Reader View.
This commit is contained in:
Vri 🌈 2023-10-01 14:13:30 +02:00
parent 825a375a34
commit 1f7c2d19ad
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

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