From 9ae5f37aeabaf8c583b128d5660c570d07759e10 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sun, 5 Sep 2021 15:38:08 +0300 Subject: [PATCH] feat: move static meta to templates --- templates/404.html | 31 ++++++------------------------- templates/index.html | 29 +++++++---------------------- templates/templates.html | 27 +++++++++++++++++++++++---- templates/thread.html | 4 ++-- 4 files changed, 38 insertions(+), 53 deletions(-) diff --git a/templates/404.html b/templates/404.html index a13d501..90a4cac 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,31 +1,12 @@ - {{ template "static" }} - + {{ template "static" }} + - Micrach - - - - - - - - - - - - - - - - - - - + {{ template "static-meta" }} diff --git a/templates/index.html b/templates/index.html index 95db773..e62fdf2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,27 +1,12 @@ - {{ template "static" }} - - Micrach - - - - - - - - - - - - - - - - - - - + {{ template "static" }} + + + {{ template "static-meta" }} diff --git a/templates/templates.html b/templates/templates.html index c2ba6f1..5fdfc33 100644 --- a/templates/templates.html +++ b/templates/templates.html @@ -10,10 +10,6 @@ integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"> - {{ end }} @@ -38,4 +34,27 @@ +{{ end }} + +{{ define "static-meta" }} + Micrach + + + + + + + + + + + + + + + + + + + {{ end }} \ No newline at end of file diff --git a/templates/thread.html b/templates/thread.html index fab475d..bee29de 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -2,8 +2,8 @@ - {{ template "static" }} - {{ template "meta" $FirstPost }} + {{ template "static" }} + {{ template "meta" $FirstPost }}