mirror of
https://github.com/adulau/foo.be.git
synced 2024-11-21 17:27:05 +00:00
chg: [articles] include indexed pages in the article blog post page
This commit is contained in:
parent
527b4e0976
commit
24eb0d2164
1 changed files with 10 additions and 0 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue