slow structuring
This commit is contained in:
17
_includes/postlist.njk
Normal file
17
_includes/postlist.njk
Normal file
@ -0,0 +1,17 @@
|
||||
<ol>
|
||||
{% for post in postlist %}
|
||||
<li>
|
||||
<a href="{{ post.url }}">
|
||||
{% if post.data.image %}
|
||||
<img src="/img/{{ post.data.image.src }}" alt="{{ post.data.image.alt }}">
|
||||
{% endif %}
|
||||
<h2>{{ post.data.title }}</h2>
|
||||
<ul>
|
||||
{% for tag in post.data.tags %}
|
||||
<li>{{ tag }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<ol>
|
||||
Reference in New Issue
Block a user