diff options
author | Alexander Bilz <mail@alexbilz.com> | 2022-03-04 21:41:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 21:41:49 +0300 |
commit | 45f82b635d567e57c2a5b40bd78352b64f47a3ea (patch) | |
tree | 2367209b70db9ce6697c09ca1f5257516b9ef9d8 /layouts | |
parent | 1949935215e541fcc8be91051351e6598bdcc57a (diff) | |
parent | 278c1461e333cc7c0d63d7abaf4a35a6ba64fc69 (diff) |
feat: title case content headings
Title case content headings
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/series.html | 2 | ||||
-rw-r--r-- | layouts/portfolio/list.html | 4 |
4 files changed, 5 insertions, 5 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/index.html b/layouts/index.html index 36dd0dc..ef29d79 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -57,7 +57,7 @@ {{ end }} <div class="post__content"> - <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3> + <h3><a href="{{ .RelPermalink }}">{{ upper .Title }}</a></h3> {{ if .Site.Params.fullPostContent }} {{ .Content }} 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> diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html index 12fede9..5723384 100644 --- a/layouts/portfolio/list.html +++ b/layouts/portfolio/list.html @@ -9,7 +9,7 @@ {{ end }}" > - <h2 class="portfolio__title">{{ .title }}</h2> + <h2 class="portfolio__title">{{ title .title }}</h2> {{ range $i, $p := .portfolioitem }} <div class="portfolio"> {{ if .image }} @@ -37,7 +37,7 @@ {{ end }}" > - <h2>{{ .name | markdownify }}</h2> + <h2>{{ title .name | markdownify }}</h2> <div class="info"> {{ if .status }} <em class="fas fa-flag-checkered"></em> |