feat: add config option to disable title capitalization (#408)
* feat: add config option to disable title casing on the single.html
* feat: disable title capitalisation on archive page
Co-authored-by: Alexander Bilz <mail@alexbilz.com>
| | |
| | | &-title { |
| | | display: inline-block; |
| | | flex: 0.96; |
| | | text-transform: uppercase; |
| | | |
| | | @include themed() { |
| | | color: t('primary'); |
| | |
| | | {{ range .Pages }} |
| | | <ul class="archive__list"> |
| | | <li class="archive__list-item"> |
| | | {{ if (eq .Site.Params.disableArchiveTitleStyling true) }} |
| | | <a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ .Title }}</a> |
| | | {{ else }} |
| | | <a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ upper .Title }}</a> |
| | | {{ end }} |
| | | <div class="archive__list-date"> |
| | | {{ if isset .Site.Params "listdateformat" }} |
| | | {{ if .Site.Params.localizedDates }} |
| | |
| | | </div> |
| | | {{ end }} |
| | | <div class="post__content"> |
| | | <h1>{{ title .Title }}</h1> |
| | | {{ if (eq .Site.Params.disableTitleCapitalization true) }} |
| | | <h1>{{ .Title }}</h1> |
| | | {{ else }} |
| | | <h1>{{ title .Title }}</h1> |
| | | {{ end }} |
| | | {{ if or (eq .Type "post") (eq .Type .Site.Params.postSectionName) }} |
| | | <ul class="post__meta"> |
| | | <li class="post__meta-item"> |