feat: adding in simple template for listing blog articles
This commit is contained in:
+15
-14
@@ -8,23 +8,24 @@
|
||||
{% for article in articles %}
|
||||
{% if article.category == 'blog' %}
|
||||
<div class="post">
|
||||
<h1 class="post-title" href="{{ SITEURL }}/{{ article.url }}">
|
||||
<div class="">
|
||||
<h3 class="post-title" href="{{ SITEURL }}/{{ article.url }}">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
|
||||
</h1>
|
||||
</h3>
|
||||
<span class="post-date">{{ article.locale_date }}</span>
|
||||
{% if article.tags %}
|
||||
<span class="post-tags">
|
||||
Tags:
|
||||
<ul>
|
||||
{% for tag in article.tags %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</span>{% endif %}
|
||||
<p>
|
||||
{{ article.summary }}
|
||||
</p>
|
||||
<a class="read-more" href="{{ article.url }}">Continue reading »</a>
|
||||
<!-- <span class="post-tags">-->
|
||||
<!-- Tags:-->
|
||||
<!-- <ul>-->
|
||||
<!-- {% for tag in article.tags %}-->
|
||||
<!-- <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>-->
|
||||
<!-- {% endfor %}-->
|
||||
<!-- </ul>-->
|
||||
<!-- </span>{% endif %}-->
|
||||
<!-- <p>-->
|
||||
<!-- {{ article.summary }}-->
|
||||
<!-- </p>-->
|
||||
<!-- <a class="read-more" href="{{ article.url }}">Continue reading »</a>-->
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user