Move "view all" link above similar content

Easier to see
This commit is contained in:
Jake Howard 2023-10-16 21:35:58 +01:00
parent e0561a45e5
commit 520614a3c5
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 8 additions and 5 deletions

View File

@ -4,12 +4,14 @@ section#similar-content {
align-items: center;
margin-top: 2rem;
.subtitle {
h2 {
color: inherit;
margin-bottom: 0;
}
.view-all {
margin: $block-spacing 0;
margin-top: 0.25rem;
margin-bottom: 0.5rem;
}
.media {

View File

@ -10,15 +10,16 @@
<section class="container similar-content" id="similar-content">
<h2 class="subtitle is-size-2">Similar content</h2>
<p class="view-all">
<a href="{{ page.blog_post_list_page_url }}">View all &rarr;</a>
</p>
{% for page in page.get_similar_posts %}
{% block listing_item %}
{% include "common/listing-item.html" %}
{% endblock %}
{% endfor %}
<p class="subtitle view-all">
<a href="{{ page.blog_post_list_page_url }}">View all &rarr;</a>
</p>
</section>
{% endcache %}
{% endif %}