Skip to content

Commit

Permalink
feat: title case headings on content pages respectively keep user for…
Browse files Browse the repository at this point in the history
…matting
  • Loading branch information
alexanderdavide committed Mar 3, 2022
1 parent c14fb1e commit 8dc415c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion assets/scss/partials/components/_portfolio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
}

&__title {
text-transform: uppercase;
letter-spacing: 1px;
font-size: 2.6rem;
line-height: 1;
Expand Down
3 changes: 0 additions & 3 deletions assets/scss/partials/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
$font-size-h1: 3.6rem;

font-size: $font-size-h1;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;

Expand All @@ -115,7 +114,6 @@

font-size: $font-size-h2;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;

Expand All @@ -133,7 +131,6 @@

font-size: $font-size-h3;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/series.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 8dc415c

Please sign in to comment.