website/templates/blog/index.html

32 lines
1.2 KiB
HTML
Raw Normal View History

2022-04-17 20:25:37 +00:00
{% extends "base.html" %} {% block meta %}
{% set title = "Posts" %}
{% set description = "The Hostea Blog: we write about Gitea, Free Software and the general forge ecosystem" %}
2022-04-17 20:25:37 +00:00
{{ macros::get_meta_tags(title=title, description=description) }}
{% endblock meta %} {% block content %}
<div class="blog__container">
<h1 class="blog__title">{{ section.title }}</h1>
<ul class="blog__list">
{% for page in section.pages %}
<li class="blog__post-item">
<a href="{{ page.permalink | safe }}" class="blog__post-link">
<h2 class="blog__post-title">{{ page.title }}</h2>
{% include "blog/_meta.html" %}
<p class="blog__post-description">{{ page.description | safe }} </p>
</a>
<div class="blog__post-tag-container">
{% for t in page.taxonomies.tags %}
<a class="blog__post-tag" href="/tags/{{t | slugify }}">#{{ t }}</a>
{% endfor %}
</div>
</li>
{% endfor %}
</ul>
</div>
{% block rss %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}">
{% endblock %}
{% endblock content %}