From 30e8f29d1ff921ce22d2c9d7602588c075d7a54e Mon Sep 17 00:00:00 2001 From: Konstantin Kostov Date: Mon, 18 Mar 2024 17:52:23 +0100 Subject: [PATCH] more layout improvements --- blog/templates/blog/blog_index_page.html | 83 +++++++++++++++++++----- blog/templates/blog/blog_page.html | 2 +- theme/static_src/src/styles.css | 8 ++- 3 files changed, 72 insertions(+), 21 deletions(-) diff --git a/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html index f527d41..ca16eda 100644 --- a/blog/templates/blog/blog_index_page.html +++ b/blog/templates/blog/blog_index_page.html @@ -5,27 +5,74 @@ {% block body_class %}template-blogindexpage{% endblock %} {% block content %} -
-

{{ page.title }}

-
{{ page.intro|richtext }}
-
+
+
+
+

{{ page.title }}

+
{{ page.intro|richtext }}
-
- {% for post in blogpages %} - {% with post=post.specific %} -
-

{{ post.title }}

+
+ {% for post in blogpages %} + {% with post=post.specific %} +
+
+ {% with post.main_image as main_image %} + {% if main_image %} + {% image main_image width-400 class="blog absolute inset-0 h-full w-full rounded-2xl bg-gray-50 object-cover" %}{% endif %} + {% endwith %} +
+
+
+
+ - {% with post.main_image as main_image %} - {% if main_image %}{% image main_image width-400 class="blog" %}{% endif %} - {% endwith %} - - -

{{ post.intro }}

-
- {% endwith %} - {% endfor %} + {% with tags=post.tags.all %} + {% if tags %} +
+

Tags

+
    + {% for tag in tags %} +
  • + {{ tag }} +
  • + {% endfor %} +
+
+ {% endif %} + {% endwith %} +
+
+

+ + + {{ post.title }} + +

+

{{ post.intro }}

+
+ {#
#} + {#
#} + {# #} + {#
#} + {#

#} + {# #} + {# #} + {# Michael Foster#} + {# #} + {#

#} + {#

Co-Founder / CTO

#} + {#
#} + {#
#} + {#
#} +
+ + {% endwith %} + {% endfor %} +
+ +
{% endblock %} \ No newline at end of file diff --git a/blog/templates/blog/blog_page.html b/blog/templates/blog/blog_page.html index f4c5e8c..576b74d 100644 --- a/blog/templates/blog/blog_page.html +++ b/blog/templates/blog/blog_page.html @@ -47,7 +47,7 @@ - {% with tags=page.tags.all %} + {% with tags=page.tags.all %} {% if tags %}

Tags

diff --git a/theme/static_src/src/styles.css b/theme/static_src/src/styles.css index 8af77b8..fbcf141 100644 --- a/theme/static_src/src/styles.css +++ b/theme/static_src/src/styles.css @@ -78,13 +78,17 @@ } .tags ul { - @apply flex space-x-4 text-center text-lg; + @apply flex space-x-4 text-center text-sm; } .tags li { - @apply flex-1 p-4 inline-flex items-center rounded-md bg-green-50 px-2 py-1 font-medium text-green-700 ring-1 ring-inset ring-green-600/20; + @apply flex-1 p-4 inline-flex items-center rounded-2xl bg-green-50 px-2 py-1 font-medium text-green-700 ring-1 ring-inset ring-green-600/20; } .tags a { @apply border-b-0 w-full; } + + .blog-pages a { + @apply border-b-0; + } \ No newline at end of file