2016-12-03 21:10:25 +00:00
|
|
|
{% extends "_base.html" %}
|
2020-01-12 19:26:01 +00:00
|
|
|
{% from "macros/blog.html" import render_blog_post %}
|
2016-12-03 21:10:25 +00:00
|
|
|
|
2020-01-12 19:26:01 +00:00
|
|
|
{% block page_title %}{{ this.title }} | {{ super() }}{% endblock %}
|
2016-12-03 21:10:25 +00:00
|
|
|
|
|
|
|
{% block main_content %}
|
2020-01-12 19:26:01 +00:00
|
|
|
<h2>Latest blog posts</h2>
|
|
|
|
{% for post in site.get('/blog').pagination.for_page(1).pagination.items %}
|
2021-02-14 19:16:02 +00:00
|
|
|
<article class="blog-post">
|
2020-01-12 19:26:01 +00:00
|
|
|
<h3 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h3>
|
2021-02-14 19:16:02 +00:00
|
|
|
<div class="info text-small">{{ post.pub_date.strftime("%B %d, %Y") }}</div>
|
2020-03-23 21:36:55 +00:00
|
|
|
</article>
|
2021-02-14 19:16:02 +00:00
|
|
|
{% if not loop.last %}<hr />{% endif %}
|
2020-01-12 19:26:01 +00:00
|
|
|
{% endfor %}
|
|
|
|
{{ this.body }}
|
2016-12-03 21:10:25 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body_class %}home{% endblock %}
|