Import initial.
This commit is contained in:
18
layouts/blog.njk
Normal file
18
layouts/blog.njk
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "base.njk" %}
|
||||
|
||||
{% block article %}
|
||||
{% block header %}{{ header | safe }}{% endblock %}
|
||||
<article>
|
||||
{% block content %}{{ contents | safe }}{% endblock %}
|
||||
{% set news = collections["archives"] %}
|
||||
<ul>
|
||||
{% for article in news %}
|
||||
<li>
|
||||
<p><a href="/{{ article.path }}">{{ moment(article.date).format('LL') }} | {{ article.title }}</a></p>
|
||||
<p>{{ article.excerpt | safe }}</p>
|
||||
</li>
|
||||
{% else %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</article>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user