From f794fb61348bc089e59a7b88f84738fef094a54f Mon Sep 17 00:00:00 2001 From: akuma06 Date: Tue, 6 Jun 2017 22:15:27 +0200 Subject: [PATCH] No more double mascot on 404 Just put the mascot in block then defined it as a simple
tag in 404 --- templates/404.html | 1 + templates/index.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/404.html b/templates/404.html index c416ff0a..732a4b79 100644 --- a/templates/404.html +++ b/templates/404.html @@ -5,3 +5,4 @@ {{end}} +{{define "mascot"}}
{{end}} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 6d213f52..70f2d9e0 100755 --- a/templates/index.html +++ b/templates/index.html @@ -68,7 +68,7 @@
{{block "content" .}}{{call $.T "nothing_here"}}{{end}}
- + {{ block "mascot" .}} {{if ne .Mascot "hide"}}
{{ if ne .MascotURL "" }} @@ -83,6 +83,7 @@ {{end}} {{end}} {{end}} + {{end}}