garagehq.deuxfleurs.fr/templates/categories/single.html

76 lines
2.2 KiB
HTML
Raw Normal View History

2022-01-24 17:36:50 +00:00
{% extends "base.html" %}
{% block header %}
<header class='hero'>
<div class='hero-body pb-0'>
<div class='container'>
<div class='has-text-centered'>
<h1 class="title">
<span class="icon-text">
<span class="icon">
<i class="fas fa-cube"></i>
</span>
<span>{{ term.name }}</span>
</span>
</h1>
</div>
</div>
</div>
</header>
{% endblock %}
{% block content %}
<section class="section">
<div class="container">
<div class="columns is-centered">
<div class="column is-9">
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = term.pages %}
{% endif %}
{% for page in pages %}
<article class="box">
<h2 class="title">
<a href='{{ page.permalink }}'>
{{ page.title }}
</a>
</h2>
<p class="subtitle">{{ page.description }}</p>
<div class="columns is-multiline is-gapless">
<div class="column is-8">
{{ macros::page_publish_metadata(page=page) }}
</div>
<div class="column is-4 has-text-right-desktop">
{{ macros::page_content_metadata(page=page) }}
</div>
</div>
<div class="content mt-2">
{{ page.summary | safe }}
<a href='{{ page.permalink }}'>
Read More
<span class="icon is-small">
<i class="fas fa-arrow-right fa-xs"></i>
</span>
</a>
</div>
<div class="columns">
<div class="column">
{% if page.taxonomies.categories %}
{{ macros::render_categories(categories=page.taxonomies.categories) }}
{% endif %}
</div>
<div class="column has-text-right-desktop">
{% if page.taxonomies.tags %}
{{ macros::render_tags(tags=page.taxonomies.tags) }}
{% endif %}
</div>
</div>
</article>
{% endfor %}
</div>
</div>
</div>
</section>
{% endblock content %}