{{- .Title -}}
+{{- title .Title -}}
{{- /* Subtitle */ -}} {{- with $params.subtitle -}}{{ . }}
{{- end -}} diff --git a/layouts/_default/single.md b/layouts/_default/single.md index 7a2d138b..f5b6cf19 100644 --- a/layouts/_default/single.md +++ b/layouts/_default/single.md @@ -1,9 +1,9 @@ {{- $params := partial "function/params.html" -}} {{- $author := .Store.Get "author" -}} -# {{ .Title }} +# {{ title .Title }} {{ if $params.password -}} - ***{{ T "single.encryptedAbstract" }}*** + _**{{ T "single.encryptedAbstract" }}**_ {{- else -}} {{ .RawContent | replaceRE "\n?{{% fixit-encryptor .+ %}}((\n|.)*){{% /fixit-encryptor %}}\n?" "" }} {{- end }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index f86b3c93..3392b79b 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -31,7 +31,7 @@ {{- $icon | partial "plugin/icon.html" -}} {{- end -}} {{- end -}} - {{ .Title }} + {{ title .Title }} {{- /* Meta */ -}} diff --git a/layouts/index.archives.html b/layouts/index.archives.html index b5fe3e9b..a3c9fe85 100644 --- a/layouts/index.archives.html +++ b/layouts/index.archives.html @@ -51,7 +51,7 @@ {{- if eq $repost.enable true -}} {{- dict "Class" "fa-solid fa-share fa-fw text-success me-1" | partial "plugin/icon.html" -}} {{- end -}} - {{- .LinkTitle -}} + {{- title .LinkTitle -}} {{- .Date | dateFormat ($.Site.Params.archives.dateFormat | default "01-02") -}} diff --git a/layouts/page/friends.html b/layouts/page/friends.html index f3f2947d..b1c81af3 100644 --- a/layouts/page/friends.html +++ b/layouts/page/friends.html @@ -1,5 +1,5 @@ {{- define "title" -}} - {{- .Title -}} + {{- title .Title -}} {{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}} {{- end -}} @@ -8,7 +8,7 @@{{- .Title -}}
+{{- title .Title -}}
{{- /* Subtitle */ -}} {{- with $params.subtitle -}}{{ . }}
{{- end -}}