From c8f01870d4c9dc204124e6979818ec5dcd9d5293 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 21 Oct 2022 17:20:58 +0100 Subject: [PATCH] Use simpler listing on tag list page --- static/src/scss/_contact.scss | 13 ------------- static/src/scss/_listing.scss | 12 ++++++++++++ static/src/scss/base.scss | 1 - .../templates/blog/blog_post_tag_list_page.html | 17 +++++++++++++++++ .../common/templates/common/listing_page.html | 4 +++- 5 files changed, 32 insertions(+), 15 deletions(-) delete mode 100644 static/src/scss/_contact.scss diff --git a/static/src/scss/_contact.scss b/static/src/scss/_contact.scss deleted file mode 100644 index 77b7152..0000000 --- a/static/src/scss/_contact.scss +++ /dev/null @@ -1,13 +0,0 @@ -.page-contactpage { - .card { - @include dark-mode { - background-color: $grey-darker; - } - } - - .subtitle { - @include dark-mode { - color: $grey-lighter; - } - } -} diff --git a/static/src/scss/_listing.scss b/static/src/scss/_listing.scss index 5ae7203..fb7aeb4 100644 --- a/static/src/scss/_listing.scss +++ b/static/src/scss/_listing.scss @@ -78,3 +78,15 @@ nav.pagination { } } } + +.card { + @include dark-mode { + background-color: $grey-darker; + } + + .subtitle { + @include dark-mode { + color: $grey-lighter; + } + } +} diff --git a/static/src/scss/base.scss b/static/src/scss/base.scss index f903a0e..dba0456 100644 --- a/static/src/scss/base.scss +++ b/static/src/scss/base.scss @@ -18,7 +18,6 @@ @import "search"; @import "spotify"; @import "404"; -@import "contact"; @import "password_required"; @import "commento"; diff --git a/website/blog/templates/blog/blog_post_tag_list_page.html b/website/blog/templates/blog/blog_post_tag_list_page.html index 434b95e..e9f372a 100644 --- a/website/blog/templates/blog/blog_post_tag_list_page.html +++ b/website/blog/templates/blog/blog_post_tag_list_page.html @@ -1 +1,18 @@ {% extends "common/listing_page.html" %} + +{% load wagtailcore_tags %} + +{% block listing_item %} +
+
+
+
+

+ {{ page.title }} +

+

{{ page.summary }}

+
+
+
+
+{% endblock %} diff --git a/website/common/templates/common/listing_page.html b/website/common/templates/common/listing_page.html index 2cec9f2..6f95a09 100644 --- a/website/common/templates/common/listing_page.html +++ b/website/common/templates/common/listing_page.html @@ -15,7 +15,9 @@ {% block post_content %}
{% for page in listing_pages %} - {% include "common/listing-item.html" %} + {% block listing_item %} + {% include "common/listing-item.html" %} + {% endblock %} {% endfor %}