WIP: start page with header

This commit is contained in:
Hoernschen 2023-12-24 00:01:53 +01:00
parent 9d834470a6
commit 06b0b4d643
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
18 changed files with 1683 additions and 9 deletions

View file

@ -0,0 +1,19 @@
{{ define "main" }}
{{ with .Params.image }}
{{ if .url }}
<img class="coverimage" src="{{ .url }}" alt="{{ .alt }}" />
{{ else }}
<img class="coverimage" src="{{ . }}" />
{{ end }}
{{ end }}
<div class="content">
{{ with .Title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}
<!-- <h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6> -->
{{ .Content }}
</div>
{{ end }}