redesign blog articles

This commit is contained in:
Vri 🌈 2023-03-15 14:29:23 +01:00
parent 87a84a23ba
commit 62b789d781
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 31 additions and 8 deletions

View file

@ -3,10 +3,15 @@
<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 title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p>
</header>
{{ end }}
{{- define "main" }}
<main>
<p class="date-published" title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p>
<h1 class="title">{{ .Title }}</h1>
{{ .Content -}}
<aside>
{{- with .Params.topics }}