chg: [articles] include indexed pages in the article blog post page

This commit is contained in:
Alexandre Dulaunoy 2022-12-26 23:39:15 +01:00
parent 527b4e0976
commit 24eb0d2164
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -3,6 +3,16 @@ layout: page
title: Articles title: Articles
permalink: /articles/ permalink: /articles/
--- ---
<h2>Pages</h2>
<ul class="c-archives__list">
{% for page in site.pages %}
{% if page.indexed == true %}
<li class="c-archives__item"> <a href="{{ page.url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
<br/>
<h2>Blog posts</h2>
{% for post in site.posts %} {% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}