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;
|
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 {
|
||||||
|
|
|
@ -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 →</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 →</a>
|
|
||||||
</p>
|
|
||||||
</section>
|
</section>
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue