blog.robur.coop/templates/index.html
Reynir Björnsson 3b1d9f0805 Implement tags
All tags are now on a single page. This is easier to implement with
yocaml2's architecture.
2024-10-09 11:51:14 +02:00

36 lines
1.1 KiB
HTML

<a class="small-button rss" href="{{ host }}/feed.xml">RSS</a>
{%- autoescape false -%}
{{ yocaml_body }}
{% endautoescape -%}
<h3>Essays and ramblings</h3>
<ol reversed class="list-articles">
{%- for article in articles -%}
<li>
<div class="side">
<a href="{{ article.author.link }}">
<img src="{{ article.author.avatar }}">
</a>
{%- for co_author in article.co_authors -%}
<a href="{{ coauthor.author.link }}">
<img src="{{ coauthor.author.avatar }}">
</a>
{%- endfor -%}
</div>
<div class="content">
<span class="date">{{ article.date.human }}</span>
<a href="{{ host }}{{ article.url }}">{{ article.title }}</a><br />
<p>{{ article.description }}</p>
<div class="bottom">
<ul class="tags-list">
{%- for tag in article.tags -%}
<li><a href="{{ host }}/tags.html#tag-{{ tag }}">{{ tag }}</a></li>
{%- endfor -%}
</ul>
</div>
</div>
</li>
{%- endfor -%}
</ol>