Add custom header and footer partial support

This commit is contained in:
Tony Blyler 2016-11-08 11:27:38 -05:00
parent b781218f4e
commit d4c858a4f9
5 changed files with 5 additions and 0 deletions

View file

@ -27,3 +27,6 @@ facebook = "example"
twitter = "tonyblyler"
linkedin = "tblyler"
```
You can also append your own `<head>` and footer elements (just before the `</body>`).
Do so by creating `layouts/partials/foot.html` and `layouts/partials/head.html` files in your hugo directory before compilation.

View file

View file

@ -8,5 +8,6 @@
{{ end }}
<a href="#top">Top</a>
</div>
{{ partial "foot.html" . }}
</body>
</html>

View file

View file

@ -9,6 +9,7 @@
{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternative" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
{{ partial "head.html" . }}
</head>
<body>
<a id="title" href="/" title="{{ .Site.Title }}">