From d7d3733ec324f90a1f89238612a7ec27704c31f1 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Sun, 21 Aug 2022 13:31:33 +0200 Subject: [PATCH] Restructure template files --- templates/footer.html | 30 +++++++++++++-------------- templates/index.html | 48 ++++++++++++------------------------------- templates/layout.html | 5 +++++ templates/meta.html | 21 ++++++++----------- 4 files changed, 41 insertions(+), 63 deletions(-) diff --git a/templates/footer.html b/templates/footer.html index d043dd9..29e3838 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,16 +1,14 @@ - -
- -
- - - - - - - - + +
+ +
+ + + + + + diff --git a/templates/index.html b/templates/index.html index 5cb0a67..25b58ed 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,45 +6,23 @@
{% for project in projects %} {% set image = project.attachments.images.first() %} - {% if project.type %} - -
-
project image
-
-
-
-
-

{{ project.title }}

-

{{ project.body }}

-
- - Translation status - -
+
+
project image
+
+
+
+
+

{{ project.title }}

+

{{ project.body }}

+
+ + Translation status +
- {% else %} - -
-
project image
-
-
-
-
-

{{ project.title }}

-

{{ project.body }}

-
- - Translation status - -
-
-
-
-
- {% endif %} +
{% endfor %}
diff --git a/templates/layout.html b/templates/layout.html index 7def03e..ae2b003 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -1,7 +1,12 @@ + + {% include 'meta.html' %} + {% block page %} {% include 'masterhead.html' %} {% include 'about.html' %} {% block projects %}{% endblock %} {% endblock %} {% include 'footer.html' %} + + diff --git a/templates/meta.html b/templates/meta.html index 9f316b6..fd7e3b4 100644 --- a/templates/meta.html +++ b/templates/meta.html @@ -1,17 +1,14 @@ - - - - - + + + {{ this.title }} - + - - - - + + + + - - +