From 84e1ae8eda0c75a520957e180c73e9c2ba284585 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 2 Oct 2019 20:24:19 +0530 Subject: [PATCH] Improve all templates: blog/page/blog-post --- templates/blog.html | 13 +++++++ templates/layout.html | 76 +++++++++++++++++++------------------- templates/macros/blog.html | 51 +++++++++++++------------ templates/page.html | 43 ++++++++++++++++++++- 4 files changed, 118 insertions(+), 65 deletions(-) diff --git a/templates/blog.html b/templates/blog.html index 21f2aeb..56175b4 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -3,6 +3,19 @@ {% from "macros/pagination.html" import render_pagination %} {% block title %}{{ this.title }}{% endblock %} {% block body %} +
+
+
+
+
+

ungleich blog

+
+ +
+
+
+
+
diff --git a/templates/layout.html b/templates/layout.html index 5ed4aee..aef3cf4 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -57,44 +57,46 @@
-
-
-
-
-
-

ungleich blog

-
- -
-
-
-
-
- - - - - - -
-

{{ self.title() }}

- -
{% block body %}{% endblock %}
- +
+ + diff --git a/templates/macros/blog.html b/templates/macros/blog.html index d84c0f1..2a71e01 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -1,30 +1,29 @@ {% macro render_blog_post(post, from_index=false) %} - -
-
-
- {% if from_index %}

{% else %}

{% endif %} -
-
- {% if from_index %}

{{ post.title }}

+ {% if from_index %} +
+
+
+ {% if from_index %}

{% else %}

{% endif %} +
+
+ {% if from_index %}

{{ post.title }}

+ {% else %} +

{{ post.title }}

+ {% endif %} + +

+

+ {{ post.abstract }} +

+

+
+
+
+
{% else %} -

{{ post.title }}

+ {{ post.body }} {% endif %} - - -

-

- {% if from_index %} - {{ post.abstract }} - {% else %} - {{ post.body }} - {% endif %} -

-

-
-
-
-
+ {% endmacro %} diff --git a/templates/page.html b/templates/page.html index 0430577..e1519fb 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,6 +1,45 @@ {% extends "layout.html" %} {% block title %}{{ this.title }}{% endblock %} +
+

{{ self.title() }}

+ +
{% block body %} -

{{ this.title }}

- {{ this.body }} +
+
+
+
+
+

{{ this.title }}

+
+ +
+
+
+
+
+
+
+
+
+
+
+ {{ this.body }} +
+
+
+
+
+
{% endblock %}