aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-02-15 21:05:46 +0100
committerMartin Fischer <martin@push-f.com>2026-02-15 21:05:46 +0100
commit928c0d2b327c798dd24fc2de2c9af9930d475fdd (patch)
treea5f982b1418d7f6afe458c0b73eb8a446618b9b2
parent05e9eb099c11892c2d3ad56894097abaa1a74b1d (diff)
feat: allow customizing title h1 with titleAttributesHEADmaster
-rw-r--r--layouts/_default/single.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0538658..52eaee5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -10,8 +10,14 @@
<article>
<header class="single-intro-container">
{{- /* Title and Summary */}}
-
- <h1 class="single-title">{{ .Title }}</h1>
+
+ <h1 class="single-title"
+ {{- with .Params.titleAttributes }}
+ {{- range $key, $value := . }}
+ {{ printf "%s=%q" $key $value | safeHTMLAttr }}
+ {{- end }}
+ {{- end }}
+ >{{ .Title }}</h1>
{{- with .Param "summary" }}
<p class="single-summary">{{ . | markdownify }}</p>
{{- end }}