From d4c858a4f9fb959b24f3bb1fb555b8fadf8ba617 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Tue, 8 Nov 2016 11:27:38 -0500 Subject: [PATCH] Add custom header and footer partial support --- README.md | 3 +++ layouts/partials/foot.html | 0 layouts/partials/footer.html | 1 + layouts/partials/head.html | 0 layouts/partials/header.html | 1 + 5 files changed, 5 insertions(+) create mode 100644 layouts/partials/foot.html create mode 100644 layouts/partials/head.html diff --git a/README.md b/README.md index 0eabf82..e602a4f 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,6 @@ facebook = "example" twitter = "tonyblyler" linkedin = "tblyler" ``` + +You can also append your own `` and footer elements (just before the ``). +Do so by creating `layouts/partials/foot.html` and `layouts/partials/head.html` files in your hugo directory before compilation. diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c7ea9c8..b901dd4 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,5 +8,6 @@ {{ end }} Top + {{ partial "foot.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 437531b..bd153b8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,6 +9,7 @@ {{ if .RSSlink }} {{ end }} + {{ partial "head.html" . }}