From 707a9322aae7389b4f484ac812b12cbfcb8b218f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 30 Oct 2022 14:04:10 +0530 Subject: [PATCH] chore: refactor templates --- static/rss.svg | 1 + templates/footer.html | 8 +++++ templates/head.html | 52 ++++++++++++++++++++++++++++++ templates/index.html | 75 ++++--------------------------------------- templates/nav.html | 17 ++++++++++ 5 files changed, 85 insertions(+), 68 deletions(-) create mode 100644 static/rss.svg create mode 100644 templates/footer.html create mode 100644 templates/head.html create mode 100644 templates/nav.html diff --git a/static/rss.svg b/static/rss.svg new file mode 100644 index 0000000..c9a1368 --- /dev/null +++ b/static/rss.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..5d20415 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,8 @@ + diff --git a/templates/head.html b/templates/head.html new file mode 100644 index 0000000..27ea624 --- /dev/null +++ b/templates/head.html @@ -0,0 +1,52 @@ + + + + + {% block title %}{{ title }} - {{ headline }} {% endblock title %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/index.html b/templates/index.html index 6cc5240..013ad32 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,75 +1,9 @@ -{% set title = "Open Letter to Gitea" %} - {% set description = "The Gitea Community is asking Gitea Owners to correct conflicts of interest and restore Community Trust." %} {% set headline = "Restoring Trust in the Gitea Project" %} - - +{% set title = "Open Letter to Gitea" %} - - - - - {% block title %}{{ title }} - {{ headline }} {% endblock title %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {% include "head.html" %}
@@ -100,6 +34,11 @@
+ + + + + {% include "footer.html" %} diff --git a/templates/nav.html b/templates/nav.html new file mode 100644 index 0000000..af49812 --- /dev/null +++ b/templates/nav.html @@ -0,0 +1,17 @@ +
+

+ Open Letter to Gitea +

+ + +