24 lines
512 B
HTML
24 lines
512 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Home{% endblock title %}
|
|
|
|
{% block content %}
|
|
<h1>Home</h1>
|
|
|
|
<section>
|
|
<h2>Latest posts</h2>
|
|
{% if articles | length > 0 %}
|
|
<ul>
|
|
{% for article in articles %}
|
|
<li>
|
|
<a href="/blog/{{ article.slug }}">{{ article.title }}</a>
|
|
{% if article.excerpt %}<p>{{ article.excerpt }}</p>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No published posts yet.</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endblock content %}
|