diff options
author | alexanderdavide <alexeble1998@gmail.com> | 2022-03-03 21:13:06 +0300 |
---|---|---|
committer | alexanderdavide <alexeble1998@gmail.com> | 2022-03-03 21:13:06 +0300 |
commit | 8dc415c97890e8264a17c35906f763447c571b6b (patch) | |
tree | 1985eeeec66061787ed038c9ef7536c2148997dd /layouts | |
parent | c14fb1e46cd2d37a0fa0256d27cf7dfb997bd6f7 (diff) |
feat: title case headings on content pages respectively keep user formatting
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/series.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e6482e6..e0954b2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -15,7 +15,7 @@ {{ end }} <div class="post__content"> - <h1>{{ .Title }}</h1> + <h1>{{ title .Title }}</h1> {{ if or (eq .Type "post") (eq .Type .Site.Params.postSectionName) }} <ul class="post__meta"> <li class="post__meta-item"> diff --git a/layouts/partials/series.html b/layouts/partials/series.html index 380be46..eed27ea 100644 --- a/layouts/partials/series.html +++ b/layouts/partials/series.html @@ -4,7 +4,7 @@ <h3>Posts in this Series</h3> <ul> {{ range $related }} - <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li> + <li><a href="{{ .Page.RelPermalink }}">{{ title .Page.Title }}</a></li> {{ end }} </ul> |