Use simpler listing on tag list page

This commit is contained in:
Jake Howard 2022-10-21 17:20:58 +01:00
parent 26fabf3a43
commit c8f01870d4
Signed by: jake
GPG Key ID: 57AFB45680EDD477
5 changed files with 32 additions and 15 deletions

View File

@ -1,13 +0,0 @@
.page-contactpage {
.card {
@include dark-mode {
background-color: $grey-darker;
}
}
.subtitle {
@include dark-mode {
color: $grey-lighter;
}
}
}

View File

@ -78,3 +78,15 @@ nav.pagination {
}
}
}
.card {
@include dark-mode {
background-color: $grey-darker;
}
.subtitle {
@include dark-mode {
color: $grey-lighter;
}
}
}

View File

@ -18,7 +18,6 @@
@import "search";
@import "spotify";
@import "404";
@import "contact";
@import "password_required";
@import "commento";

View File

@ -1 +1,18 @@
{% extends "common/listing_page.html" %}
{% load wagtailcore_tags %}
{% block listing_item %}
<div class="card mt-4">
<div class="card-content">
<div class="media">
<div class="media-content">
<p class="title is-4">
<a href="{% pageurl page %}">{{ page.title }}</a>
</p>
<p class="subtitle is-6">{{ page.summary }}</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -15,7 +15,9 @@
{% block post_content %}
<section class="container">
{% for page in listing_pages %}
{% include "common/listing-item.html" %}
{% block listing_item %}
{% include "common/listing-item.html" %}
{% endblock %}
{% endfor %}
</section>