diff options
| author | Martin Fischer <martin@push-f.com> | 2026-02-15 21:05:46 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-02-15 21:05:46 +0100 |
| commit | 928c0d2b327c798dd24fc2de2c9af9930d475fdd (patch) | |
| tree | a5f982b1418d7f6afe458c0b73eb8a446618b9b2 | |
| parent | 05e9eb099c11892c2d3ad56894097abaa1a74b1d (diff) | |
| -rw-r--r-- | layouts/_default/single.html | 10 |
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 }} |
