Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/schmanat/hugo-highlights-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Schneider <manuel.schneider@schman.at>2018-03-12 17:21:12 +0300
committerGitHub <noreply@github.com>2018-03-12 17:21:12 +0300
commit262032271261096591bd9102463bca4bb4db4fd0 (patch)
tree763da454f5d7046e7f829f0b6ca9db69877228b5
parent54a7feefe1aeb15dabcad2e3f18cacf02a888123 (diff)
parent319d1a37434ed4f3482ce1f37c991ca230b074e9 (diff)
Merge pull request #8 from excitoon/custom-head-and-footer
Added custom header and footer the same way as in BeautifulHugo.
-rw-r--r--layouts/index.html1
-rw-r--r--layouts/partials/footer_custom.html4
-rw-r--r--layouts/partials/head.html1
-rw-r--r--layouts/partials/head_custom.html4
4 files changed, 10 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 70b051f..92f02ab 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -38,5 +38,6 @@
{{ end }}
{{ partial "scripts.html" . }}
+ {{- partial "footer_custom.html" . }}
</body>
</html>
diff --git a/layouts/partials/footer_custom.html b/layouts/partials/footer_custom.html
new file mode 100644
index 0000000..e123130
--- /dev/null
+++ b/layouts/partials/footer_custom.html
@@ -0,0 +1,4 @@
+<!--
+If you want to include any custom html just before </body>, put it in /layouts/partials/footer_custom.html
+Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/footer_custom.html doesn't exist.
+-->
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9c9d2ab..a9e2630 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -9,3 +9,4 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" />
{{ "<!--[if lte IE 8]><link rel=\"stylesheet\" href=" | safeHTML }}"{{ .Site.BaseURL }}{{ "css/ie8.css\" /><![endif]-->" | safeHTML }}
{{ "<!--[if lte IE 8]><link rel=\"stylesheet\" href=" | safeHTML }}"{{ .Site.BaseURL }}{{ "css/ie9.css\" /><![endif]-->" | safeHTML }}
+{{- partial "head_custom.html" . }}
diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html
new file mode 100644
index 0000000..554494a
--- /dev/null
+++ b/layouts/partials/head_custom.html
@@ -0,0 +1,4 @@
+<!--
+If you want to include any custom html just before </head>, put it in /layouts/partials/head_custom.html
+Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/head_custom.html doesn't exist.
+-->