fix: add a link to show all articles

pull/13/head
Nicolas Doby 2023-10-09 16:59:49 +02:00
parent a6ccfaaea9
commit 11f7a7e20a
3 changed files with 10 additions and 5 deletions

View File

@ -23,4 +23,9 @@
</footer>
</article>
{% endfor %}
{% if showMore %}
<div>
<a href="/blog/all_articles">Voir l'ensemble des articles</a>
</div>
{% endif %}
</div>

View File

@ -10,7 +10,8 @@ eleventyNavigation:
<nav>
{% include "tagslist.njk" %}
</nav>
{% set articlesList = collections.articles | filterDraft | head(-5) %}
{% set articlesList = collections.articles | filterDraft | head(-6) %}
{% set showMore = true %}
{% include "articlesList.njk" %}
</div>
<aside class="right-side">

View File

@ -308,12 +308,11 @@ figure figcaption {
/*!* Posts list *!*/
.post-list {
display: flex;
flex-wrap: wrap;
gap: 3rem;
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 2rem;
}
.post-list-item {
max-width: 410px;
padding: 2rem;
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0,0,0,0.3);