1
0
Fork 0

Add latest posts section in home page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Daniele Tricoli 2021-06-09 02:32:46 +02:00
parent 81c530848e
commit ad7b0ae5a3

View file

@ -23,6 +23,25 @@
</figure>
</section>
</div>
<div class="row">
<section>
<header>
<h2>Latest posts from my blog</h2>
</header>
<ul>
{% set section = get_section(path="blog/_index.md") %}
{% for page in section.pages %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>,
posted on {{ page.date | date(format="%b %e, %Y") }}
</li>
{% if loop.index >= 5 %}
{% break %}
{% endif %}
{% endfor %}
</ul>
</section>
</div>
<div class="row">
<section>
<header>