{{- title .Title -}}
+{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}
{{- /* Subtitle */ -}} {{- with $params.subtitle -}}{{ . }}
{{- end -}} diff --git a/layouts/_default/single.md b/layouts/_default/single.md index f5b6cf19..d8e0310a 100644 --- a/layouts/_default/single.md +++ b/layouts/_default/single.md @@ -1,6 +1,6 @@ {{- $params := partial "function/params.html" -}} {{- $author := .Store.Get "author" -}} -# {{ title .Title }} +# {{ cond (.Param "capitalizeTitles") (title .Title) .Title }} {{ if $params.password -}} _**{{ T "single.encryptedAbstract" }}**_ diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 8abda62d..20f32d43 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -31,7 +31,7 @@{{- $icon | partial "plugin/icon.html" -}} {{- end -}} {{- end -}} - {{ title .Title }} + {{ cond (.Param "capitalizeTitles") (title .Title) .Title }}
{{- /* Meta */ -}} diff --git a/layouts/page/friends.html b/layouts/page/friends.html index dbbfdb3b..631ee8a4 100644 --- a/layouts/page/friends.html +++ b/layouts/page/friends.html @@ -1,5 +1,5 @@ {{- define "title" -}} - {{- title .Title -}} + {{- cond (.Param "capitalizeTitles") (title .Title) .Title -}} {{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}} {{- end -}} @@ -8,7 +8,7 @@{{- title .Title -}}
+{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}
{{- /* Subtitle */ -}} {{- with $params.subtitle -}}{{ . }}
{{- end -}}