diff options
Diffstat (limited to 'templates/categories/single.html')
-rwxr-xr-x | templates/categories/single.html | 76 |
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 |