Add latest posts section in home page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
81c530848e
commit
ad7b0ae5a3
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue