From 946c071aadf9df5f8bf1ed3fc067e88e5a281fd5 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Fri, 31 Jan 2020 19:16:20 +0100 Subject: [PATCH] add hostname to footer text --- res/template/404.html | 2 +- res/template/about.html | 2 +- res/template/appearance.html | 2 +- res/template/donation.html | 2 +- res/template/fragments/page_wrap.html | 4 ++++ res/template/home.html | 2 +- res/template/widgets.html | 2 +- webcontroller/templates.go | 2 ++ webcontroller/web_controller.go | 9 +++++++++ 9 files changed, 21 insertions(+), 6 deletions(-) diff --git a/res/template/404.html b/res/template/404.html index 32d7718..00ca895 100644 --- a/res/template/404.html +++ b/res/template/404.html @@ -22,7 +22,7 @@ Bye!

- {{template "page_bottom"}} + {{template "page_bottom" .}} {{template "analytics"}} diff --git a/res/template/about.html b/res/template/about.html index f9f3b5d..e106c37 100644 --- a/res/template/about.html +++ b/res/template/about.html @@ -112,7 +112,7 @@ support@pixeldrain.com

- {{template "page_bottom"}} + {{template "page_bottom" .}} {{template "analytics"}} diff --git a/res/template/appearance.html b/res/template/appearance.html index f967492..2671833 100644 --- a/res/template/appearance.html +++ b/res/template/appearance.html @@ -39,7 +39,7 @@ }) }); - {{template "page_bottom"}} + {{template "page_bottom" .}} {{template "analytics"}} diff --git a/res/template/donation.html b/res/template/donation.html index 1300005..9c75416 100644 --- a/res/template/donation.html +++ b/res/template/donation.html @@ -34,7 +34,7 @@ Fornax {{end}} - {{template "page_bottom"}} + {{template "page_bottom" .}} {{template "analytics"}} diff --git a/res/template/fragments/page_wrap.html b/res/template/fragments/page_wrap.html index 3f56249..e92b048 100644 --- a/res/template/fragments/page_wrap.html +++ b/res/template/fragments/page_wrap.html @@ -48,6 +48,10 @@ Twitter: @Fornax96 Reddit: /r/pixeldrain Medium: Pixeldrain +
+ + page rendered by {{.Hostname}} + {{end}} diff --git a/res/template/home.html b/res/template/home.html index cdd2438..b6277ed 100644 --- a/res/template/home.html +++ b/res/template/home.html @@ -147,7 +147,7 @@ - {{template "page_bottom"}} + {{template "page_bottom" .}}