From a6870541ddf9c5df101ba061779eceb710787735 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Mon, 24 Aug 2020 20:48:31 +0200 Subject: [PATCH] feat: add head/custom and footer/custom for inserting custom code --- layouts/_default/baseof.html | 1 + layouts/partials/footer/custom.html | 0 layouts/partials/head.html | 2 ++ layouts/partials/head/custom.html | 0 4 files changed, 3 insertions(+) create mode 100644 layouts/partials/footer/custom.html create mode 100644 layouts/partials/head/custom.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index bb2e8f8..088cf51 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,5 +7,6 @@ {{ partial "footer/script.html" . }} {{ partial "footer/style.html" . }} + {{ partial "footer/custom.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/head.html b/layouts/partials/head.html index babb16e..e79c929 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,4 +21,6 @@ {{- $favicon := $logo.Resize "32x" -}} {{- end -}} + + {{ partial "head/custom.html" . }} \ No newline at end of file diff --git a/layouts/partials/head/custom.html b/layouts/partials/head/custom.html new file mode 100644 index 0000000..e69de29