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

alexanderdavide
03.13.2022 8dc415c97890e8264a17c35906f763447c571b6b
feat: title case headings on content pages respectively keep user formatting
4 files modified
8 ■■■■ changed files
assets/scss/partials/components/_portfolio.scss 1 ●●●● patch | view | raw | blame | history
assets/scss/partials/components/_post.scss 3 ●●●●● patch | view | raw | blame | history
layouts/_default/single.html 2 ●●● patch | view | raw | blame | history
layouts/partials/series.html 2 ●●● patch | view | raw | blame | history
assets/scss/partials/components/_portfolio.scss
@@ -27,7 +27,6 @@
  }
  &__title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 2.6rem;
    line-height: 1;
assets/scss/partials/components/_post.scss
@@ -97,7 +97,6 @@
      $font-size-h1: 3.6rem;
      font-size: $font-size-h1;
      text-transform: uppercase;
      letter-spacing: 1px;
      line-height: 1;
@@ -115,7 +114,6 @@
      font-size: $font-size-h2;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      line-height: 1;
@@ -133,7 +131,6 @@
      font-size: $font-size-h3;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      line-height: 1;
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">
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>