mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
17.17.2024 9f214dc775456a34215de3acc1b34fa25b5eb4ed
feat: add option to disable title capitalization on index (#526)

2 files modified
8 ■■■■ changed files
exampleSite/config/_default/params.toml 2 ●●● patch | view | raw | blame | history
layouts/index.html 6 ●●●● patch | view | raw | blame | history
exampleSite/config/_default/params.toml
@@ -30,7 +30,7 @@
# postSectionName = "blog"
# relatedPosts = true
# numberOfRelatedPosts = 3
# disableTitleCapitalization = true
reversepagetitle = true # When set to 'true', the Window Title will be reversed to 'Title | Author' instead of the default 'Author | Title'
layouts/index.html
@@ -49,7 +49,11 @@
        </div>
      {{ end }}
      <div class="post__content">
        <h3><a href="{{ .RelPermalink }}">{{ upper .Title }}</a></h3>
        {{ if (eq .Site.Params.disableTitleCapitalization true) }}
          <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
        {{ else }}
          <h3><a href="{{ .RelPermalink }}">{{ upper .Title }}</a></h3>
        {{ end }}
        {{ if .Site.Params.fullPostContent }}
          <p>{{ .Content | markdownify }}</p>
        {{ else }}