[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

@ -1,13 +1,13 @@
<article>
<article class="blog">
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
{{- if in .RawContent "<!--more-->" }}
<section>
{{- if in .RawContent "<!--more--> " }}
{{ .Summary | safeHTML }}
{{- else }}
{{- else }}
<p>{{ .Summary | safeHTML }}</p>
{{- end }}
{{- if .Truncated }}
{{- end }}
{{- if .Truncated }}
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
{{- end }}
{{- end }}
</section>
</article>