Move "view all" link above similar content
Easier to see
This commit is contained in:
parent
e0561a45e5
commit
520614a3c5
2 changed files with 8 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 →</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 →</a>
|
||||
</p>
|
||||
</section>
|
||||
{% endcache %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue