From 917e6b616760a7e9b5e872ac8885af4232d36eb9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 8 Oct 2023 13:49:19 +0200 Subject: [PATCH] card view is now usable on mobile --- gawa/blog/templates/blog/browse.html | 26 +++++++++++++------------- gawa/blog/templates/blog/featured.html | 2 +- gawa/static/custom.js | 7 +++++++ 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/gawa/blog/templates/blog/browse.html b/gawa/blog/templates/blog/browse.html index 84f2306..8f84dc7 100644 --- a/gawa/blog/templates/blog/browse.html +++ b/gawa/blog/templates/blog/browse.html @@ -110,18 +110,18 @@
-
- {% if is_empty %} -
- 404 -

{% trans "No posts found for your filters." %}

-
- {% else %} + {% if is_empty %} +
+ 404 +

{% trans "No posts found for your filters." %}

+
+ {% else %} +
{% for post in posts %} - +
+ {% endif %}
diff --git a/gawa/blog/templates/blog/featured.html b/gawa/blog/templates/blog/featured.html index ee9f3e4..361907e 100644 --- a/gawa/blog/templates/blog/featured.html +++ b/gawa/blog/templates/blog/featured.html @@ -3,7 +3,7 @@ {% get_current_language as LANGUAGE_CODE %}

{% trans "Featured" %}

-