Skip to content

Commit

Permalink
feat: add config option to disable title capitalization
Browse files Browse the repository at this point in the history
Users can set disableTitleCapitalization to true in order to, well,
disable title capitalization.

Fixes #368
  • Loading branch information
ericswpark committed Dec 17, 2022
1 parent ba6921a commit 69c9769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
</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">
Expand Down

0 comments on commit 69c9769

Please sign in to comment.