[FEATURE] Blog: make the blog posts looks much nicer and add a header image

This commit is contained in:
chris 2023-10-29 22:05:09 +01:00 committed by jtbx
commit 2710137012
6 changed files with 69 additions and 16 deletions

View file

@ -5,7 +5,7 @@
{{- $showAuthors := not (.reduced | default false) -}}
{{ with $page }}
<header>
<header class="blog-header">
{{- if $headingLink }}<a href="{{ .RelPermalink }}">{{ end }}
<h{{ $level }}>{{ .Title }}</h{{ $level }}>
{{- if $headingLink }}</a>{{ end }}
@ -38,5 +38,6 @@
{{- end }}
{{- end }}
</div>
{{ if isset .Params "header" }} <img class="container" src="{{ .Params.header.image }}" alt="{{ .Params.header.caption }}" /> {{ end }}
</header>
{{- end }}