feat: adding in simple template for listing blog articles

This commit is contained in:
Lucas Oskorep
2024-03-12 12:59:14 -04:00
parent e2c05722d4
commit e6763b1686
+15 -14
View File
@@ -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 %}