feat: improve headlines

This commit is contained in:
2026-02-14 11:04:54 +01:00
parent 920bb21de6
commit 213b90a191
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 }}

View File

@@ -10,7 +10,7 @@
{{- if .Site.Menus.main -}}
{{- range sort .Site.Menus.main -}}
<!-- if RelPermalink = this menu item, mark it -->
<li class="luxbar-item {{if eq $rel .URL}}active{{end}}"><a href="{{ .URL }}">{{ .Name | upper }}</a></li>
<li class="luxbar-item {{if eq $rel .URL}}active{{end}}"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{- end -}}
{{ end }}
</ul>