hhl/templates/categories/single.html

34 lines
1.1 KiB
HTML
Raw Normal View History

2021-02-19 22:43:36 -05:00
{% extends "base.html" %}
{% block content %}
<h1>Posts tagged "{{ term.name }}"</h1>
<ul>
{% for page in term.pages %}
<div class="card">
<a class = header href="{{ page.permalink | safe }}">
<strong>{{ page.title }}</strong>
</a>
2021-02-19 22:43:36 -05:00
{% if page.date %}
<div class="right">{{ page.date }}</div>
2021-02-19 22:43:36 -05:00
{% endif %}
{% if page.summary %}
<p>{{ page.summary | markdown(inline=true) | safe }}...</p>
2021-02-19 22:43:36 -05:00
{% endif %}
<a href="{{ page.permalink | safe }}">Read More -></a>
</div>
2021-02-19 22:43:36 -05:00
{% endfor %}
</ul>
<hr>
<a href="{{ get_url(path="/news/") }}">News Home</a> |
<strong>Tags: </strong>
{% for t in config.taxonomies %}
{% if t.name == "tags" %}
{% set tags = get_taxonomy(kind=t.name) %}
{% for item in tags.items %}
{% set url = get_taxonomy_url(kind=tags.kind.name, name=item.name) %}
<a class="tags" href="{{ url }}">{{ item.name }}</a>
{% endfor %}
{% endif %}
{% endfor %}
{% endblock content %}