{% extends '_layout.swig' %} {% import '_macro/sidebar.swig' as sidebar_template %} {% block title %}{# #}{% set page_title_suffix = ' | ' + title %}{# #}{% if page.type === "categories" and not page.title %}{# #}{{ __('title.category') + page_title_suffix }}{# #}{% elif page.type === "tags" and not page.title %}{# #}{{ __('title.tag') + page_title_suffix }}{# #}{% else %}{# #}{{ page.title + page_title_suffix }}{# #}{% endif %}{# #}{% endblock %} {% block page_class %}page-post-detail{% endblock %} {% block content %}
{##################} {### PAGE BLOCK ###} {##################}
{% include '_partials/page-header.swig' %} {#################} {### PAGE BODY ###} {#################}
{# tagcloud page support #} {% if page.type === "tags" %}
{% set visibleTags = 0 %} {% for tag in site.tags %} {% if tag.length %} {% set visibleTags += 1 %} {% endif %} {% endfor %} {{ _p('counter.tag_cloud', visibleTags) }}
{{ tagcloud({min_font: 12, max_font: 30, amount: 300, color: true, start_color: '#ccc', end_color: '#111'}) }}
{% elif page.type === 'categories' %}
{% set visibleCategories = 0 %} {% for cat in site.categories %} {% if cat.length %} {% set visibleCategories += 1 %} {% endif %} {% endfor %} {{ _p('counter.categories', visibleCategories) }}
{{ list_categories() }}
{% else %} {{ page.content }} {% endif %}
{#####################} {### END PAGE BODY ###} {#####################}
{% include '_partials/breadcrumb.swig' %} {######################} {### END PAGE BLOCK ###} {######################}
{% endblock %} {% block sidebar %} {{ sidebar_template.render(false) }} {% endblock %} {% block script_extra %} {% include '_scripts/pages/post-details.swig' %} {% endblock %}