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; align-items: center;
margin-top: 2rem; margin-top: 2rem;
.subtitle { h2 {
color: inherit; color: inherit;
margin-bottom: 0;
} }
.view-all { .view-all {
margin: $block-spacing 0; margin-top: 0.25rem;
margin-bottom: 0.5rem;
} }
.media { .media {

View file

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