Added blog.html.twig
This commit is contained in:
parent
ba30d82221
commit
acc6c64b42
14
source/blog.html.twig
Normal file
14
source/blog.html.twig
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
layout: default
|
||||||
|
title: Blog
|
||||||
|
use: [posts]
|
||||||
|
---
|
||||||
|
<h1>Blog</h1>
|
||||||
|
|
||||||
|
{% if data.posts %}
|
||||||
|
<ul>
|
||||||
|
{% for post in data.posts %}
|
||||||
|
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
Loading…
Reference in a new issue