update blog post design

This commit is contained in:
Vri 🌈 2023-03-15 15:08:49 +01:00
parent 14d2f476bc
commit 168405713a
Signed by: vrifox
GPG key ID: D40098E5B60B2197
5 changed files with 23 additions and 21 deletions

View file

@ -6,29 +6,15 @@
{{- define "header" }}
<header id="blog-header">
<h1 class="title">{{ .Title }}</h1>
<p title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p>
<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" }}">{{ .Lastmod | time.Format "2. January 2006" }}</span>
</p>
</header>
{{ end }}
{{- define "main" }}
<main>
{{ .Content -}}
<aside>
{{- with .Params.topics }}
<ul class="topics">
{{- range . }}
<li>
<a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
</ul>
{{- end }}
{{- with .Params.tags }}
tags
{{- range . }}
<a href='{{ "tags" | relURL }}/{{ . | urlize }}'>{{ . }}</a>
{{- end }}
{{- end }}
</aside>
</main>
{{- end }}