Skip to content

Commit

Permalink
Add block for the title in head
Browse files Browse the repository at this point in the history
This was breaking Hugo.

See gohugoio/hugo#2549
  • Loading branch information
bep committed Oct 14, 2016
1 parent b89c395 commit 48d022a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/_default/baseof.html
Expand Up @@ -4,7 +4,9 @@
<head>
{{ partial "head.html" . }}
<title>
{{ .Title }}
{{block "titleHead" .}}
{{ .Title }}
{{end}}
</title>
</head>

Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/section.html
@@ -1,4 +1,7 @@

{{define "titleHead"}}
{{ T (printf "sect_%s" (.Title|lower)) }}
{{end}}

{{define "main"}}
<div class="content main">
Expand Down

0 comments on commit 48d022a

Please sign in to comment.