{% set twigTemplate = 'meta.html.twig' %}
{% block meta %} {# Begin Meta - Date #} {% if gantry.config.get('content.' ~ scope ~ '.meta-date.enabled', '1') and post.date %}
{% if gantry.config.get('content.' ~ scope ~ '.meta-date.prefix', '') is not empty %} {{ gantry.config.get('content.' ~ scope ~ '.meta-date.prefix', '') ~ ' ' }} {% endif %} {% if gantry.config.get('content.' ~ scope ~ '.meta-date.link', '1') %} {{ post.date(gantry.config.get('content.' ~ scope ~ '.meta-date.format', 'j F Y')) }} {% else %} {{ post.date(gantry.config.get('content.' ~ scope ~ '.meta-date.format', 'j F Y')) }} {% endif %}
{% endif %} {# End Meta - Date #} {# Begin Meta - Author #} {% if gantry.config.get('content.' ~ scope ~ '.meta-author.enabled', '1') and post.author.name %}
{% if gantry.config.get('content.' ~ scope ~ '.meta-author.prefix', '') is not empty %} {{ gantry.config.get('content.' ~ scope ~ '.meta-author.prefix', '') ~ ' ' }} {% endif %} {% if gantry.config.get('content.' ~ scope ~ '.meta-author.link', '1') %} {{ post.author.name }} {% else %} {{ post.author.name }} {% endif %}
{% endif %} {# End Meta - Author #} {# Begin Meta - Comments #} {% if gantry.config.get('content.' ~ scope ~ '.meta-comments.enabled', '1') %}
{% if gantry.config.get('content.' ~ scope ~ '.meta-comments.prefix', '') is not empty %} {{ gantry.config.get('content.' ~ scope ~ '.meta-comments.prefix', '') ~ ' ' }} {% endif %} {% if post.comment_count == '0' %} {% set comment_count = __('No comments', 'g5_akuatik') %} {% elseif post.comment_count == '1' %} {% set comment_count = post.comment_count ~ ' ' ~ __('Comment', 'g5_akuatik') %} {% else %} {% set comment_count = post.comment_count ~ ' ' ~ __('Comments', 'g5_akuatik') %} {% endif %} {% if gantry.config.get('content.' ~ scope ~ '.meta-comments.link', '0') %} {{ comment_count }} {% else %} {{ comment_count }} {% endif %}
{% endif %} {# End Meta - Comments #} {# Begin Meta - Categories #} {% if gantry.config.get('content.' ~ scope ~ '.meta-categories.enabled', '1') and post.categories is not empty %}
{% if gantry.config.get('content.' ~ scope ~ '.meta-categories.prefix', 'Categories:') is not empty %} {{ gantry.config.get('content.' ~ scope ~ '.meta-categories.prefix', 'Categories:') ~ ' ' }} {% endif %} {% for category in post.categories %} {%- if gantry.config.get('content.' ~ scope ~ '.meta-categories.link', '1') -%} {{ category.name }} {%- else -%} {{ category.name }} {%- endif -%} {% if not loop.last %}{{ ','|trim }}{% endif %} {% endfor %}
{% endif %} {# End Meta - Categories #} {# Begin Meta - Tags #} {% if gantry.config.get('content.' ~ scope ~ '.meta-tags.enabled', '1') and post.tags is not empty %}
{% if gantry.config.get('content.' ~ scope ~ '.meta-tags.prefix', 'Tags:') is not empty %} {{ gantry.config.get('content.' ~ scope ~ '.meta-tags.prefix', 'Tags:') ~ ' ' }} {% endif %} {% for tag in post.tags %} {%- if gantry.config.get('content.' ~ scope ~ '.meta-tags.link', '1') -%} {{ tag.name }} {%- else -%} {{ tag.name }} {%- endif -%} {% if not loop.last %}{{ ','|trim }}{% endif %} {% endfor %}
{% endif %} {# End Meta - Tags #} {% endblock %}