website/layouts/blog/single.html
vrifox 1f7c2d19ad
[blog] add article
Mainly for compatibility with Firefox Reader View.
2023-10-01 14:13:30 +02:00

29 lines
No EOL
991 B
HTML

{{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- 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>
{{ end }}
{{- define "main" }}
<main>
<article>
{{ .Content -}}
{{ partial "moreposts.html" . }}
</article>
</main>
{{- end }}