aboutsummaryrefslogtreecommitdiff
path: root/templates/categories/single.html
diff options
context:
space:
mode:
authorsptaule <lecas83@gmail.com>2022-01-24 18:36:50 +0100
committersptaule <lecas83@gmail.com>2022-01-24 18:36:50 +0100
commit336fd3f7566c7872c17b30f7cd150e1d16899205 (patch)
tree2761022d83f35c3ea839d00eb63dfb7f0a91a713 /templates/categories/single.html
downloadgaragehq.deuxfleurs.fr-336fd3f7566c7872c17b30f7cd150e1d16899205.tar.gz
garagehq.deuxfleurs.fr-336fd3f7566c7872c17b30f7cd150e1d16899205.zip
First commit
Diffstat (limited to 'templates/categories/single.html')
-rwxr-xr-xtemplates/categories/single.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/templates/categories/single.html b/templates/categories/single.html
new file mode 100755
index 0000000..a3d2159
--- /dev/null
+++ b/templates/categories/single.html
@@ -0,0 +1,76 @@
+{% 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 %} \ No newline at end of file