feat: improve headlines

This commit is contained in:
2026-02-14 11:04:54 +01:00
parent 0722d54cfc
commit b6f5869092
5 changed files with 27 additions and 24 deletions

View File

@@ -9,11 +9,12 @@
{{- $selection = true -}}
{{- end -}}
<div class="container archive">
<h1>{{ .Site.Params.Blog.Headline }}
{{- if $selection -}}
<br />({{ .Data.Singular | humanize }}: {{lower .Title}})
{{- end -}}
</h1>
<!-- Page Title -->
{{- if $selection }}
<h1>{{ (printf "Everything from %s \"%s\"" (.Data.Singular | humanize) (humanize .Title)) | markdownify }}</h1>
{{- else }}
<h1>{{ .Title }}</h1>
{{- end }}
{{ if .Site.Params.Social.CommentsProvider }}
<p><a href="{{ .Site.Params.Social.CommentsProvider }}">Subscribe</a> to my Blog via Diaspora, Mastodon, Friendica or GNU Social. Never miss a article! Reshare, like and discuss it!</p>
{{ end }}
@@ -77,10 +78,10 @@
<div class="blogpost">
{{ range .Paginator.Pages.ByPublishDate.Reverse }}
<div class="blog-summary">
<h4>
<h2>
{{ partial "blog/pre-headline.html" . -}}
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
</h4>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</h2>
<div class="metadata-summary">
{{- partial "blog/verb.html" . }}
on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}