diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 229f56c..54d66bc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,9 @@ {{ partial "head.html" . }} - {{ .Title }} + {{block "titleHead" .}} + {{ .Title }} + {{end}} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 0ddd2c7..f7ad3e6 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,4 +1,7 @@ +{{define "titleHead"}} +{{ T (printf "sect_%s" (.Title|lower)) }} +{{end}} {{define "main"}}