From a20c7035af903b9ffabe29be60237fc7cb72b744 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Tue, 28 Feb 2023 12:50:38 +0100 Subject: [PATCH] add custom templates --- templates/custom/body_outer_pre.tmpl | 7 +++++++ templates/home.tmpl | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 templates/custom/body_outer_pre.tmpl create mode 100644 templates/home.tmpl diff --git a/templates/custom/body_outer_pre.tmpl b/templates/custom/body_outer_pre.tmpl new file mode 100644 index 0000000..935d55d --- /dev/null +++ b/templates/custom/body_outer_pre.tmpl @@ -0,0 +1,7 @@ +{{ if .IsSigned }} + {{ if and (ne .SignedUser.Theme "gitea") (ne .SignedUser.Theme "arc-green") }} + + {{end}} +{{ else if and (ne DefaultTheme "gitea") (ne DefaultTheme "arc-green") }} + +{{end}} diff --git a/templates/home.tmpl b/templates/home.tmpl new file mode 100644 index 0000000..e80ad8c --- /dev/null +++ b/templates/home.tmpl @@ -0,0 +1,17 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ {{AppName}} +

+

Code everywhere!

+
+
+
+
+{{template "base/footer" .}}