From e8fc700483d4041b0b2c0af7bbbe374b84a1ef29 Mon Sep 17 00:00:00 2001 From: Julian Stier Date: Thu, 12 Mar 2020 15:14:16 +0100 Subject: [PATCH] Added possibility of custom footer; some of the code could be further centralized --- layouts/partials/footer/custom.html | 0 layouts/partials/footer/footer.html | 2 ++ layouts/partials/page-list/footer.html | 2 +- layouts/partials/page-single/footer.html | 2 +- layouts/partials/portfolio/footer.html | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/footer/custom.html create mode 100644 layouts/partials/footer/footer.html diff --git a/layouts/partials/footer/custom.html b/layouts/partials/footer/custom.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html new file mode 100644 index 0000000..115fed3 --- /dev/null +++ b/layouts/partials/footer/footer.html @@ -0,0 +1,2 @@ +{{ partial "footer/font-awesome-js.html" . }} +{{ partial "footer/custom.html" . }} diff --git a/layouts/partials/page-list/footer.html b/layouts/partials/page-list/footer.html index 2579155..603cd63 100644 --- a/layouts/partials/page-list/footer.html +++ b/layouts/partials/page-list/footer.html @@ -2,4 +2,4 @@ {{ template "_internal/google_analytics_async.html" . }} {{ end }} -{{ partial "footer/font-awesome-js.html" . }} +{{ partial "footer/footer.html" . }} diff --git a/layouts/partials/page-single/footer.html b/layouts/partials/page-single/footer.html index 7f23337..44a3d51 100644 --- a/layouts/partials/page-single/footer.html +++ b/layouts/partials/page-single/footer.html @@ -3,7 +3,7 @@ {{ template "_internal/google_analytics_async.html" . }} {{ end }} -{{ partial "footer/font-awesome-js.html" . }} +{{ partial "footer/footer.html" . }} {{ partial "highlight-js.html" . }} {{ with .Site.Params.toc }} {{ if and (eq . "tocbot") (ne $include_toc false) }} diff --git a/layouts/partials/portfolio/footer.html b/layouts/partials/portfolio/footer.html index 2579155..603cd63 100644 --- a/layouts/partials/portfolio/footer.html +++ b/layouts/partials/portfolio/footer.html @@ -2,4 +2,4 @@ {{ template "_internal/google_analytics_async.html" . }} {{ end }} -{{ partial "footer/font-awesome-js.html" . }} +{{ partial "footer/footer.html" . }}