fix: add a link to show all articles
parent
a6ccfaaea9
commit
11f7a7e20a
|
@ -23,4 +23,9 @@
|
|||
</footer>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% if showMore %}
|
||||
<div>
|
||||
<a href="/blog/all_articles">Voir l'ensemble des articles</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue