{% macro section_meta(section, author) %}
{%- if section.extra["date"] -%} {{ section.extra["date"] | date(format="%Y.%m.%d") }} {# end of section.date if-check #} {%- endif -%} {%- if author -%} {{ utils::author(page=section) }} {%- endif -%}
{% endmacro section_meta %} {% macro langs(page) %} {% if page.translations | length > 1 %}
Translations: {# TODO translate the span content too #} {% for translated in page.translations %} {{ translated.lang }} {% endfor %}
{% endif %} {% endmacro langs %} {% macro meta(page, author) %}
{%- if page.date -%} {{ page.date | date(format="%Y.%m.%d") }} {# end of page.date if-check #} {%- endif -%} {%- if page.updated -%} [Updated: {{ page.updated | date(format="%Y.%m.%d") }}] {# end of page.updated if-check #} {%- endif -%} {%- if author -%} {{ utils::author(page=page) }} {%- endif -%} {{ posts::taxonomies(taxonomy=page.taxonomies, disp_cat=config.extra.show_categories, disp_tag=config.extra.show_tags) }}
{% endmacro meta %} {% macro taxonomies(taxonomy, disp_cat, disp_tag) %} {% if disp_cat and disp_tag -%} {% if taxonomy.categories -%} {{ posts::categories(categories=taxonomy.categories) }} {# end if-check for categories #} {%- endif -%} {% if taxonomy.tags -%} {{ posts::tags(tags=taxonomy.tags) }} {# end if-check for tags #} {% endif -%} {% elif disp_cat -%} {% if taxonomy.categories-%} {{ posts::categories(categories=taxonomy.categories) }} {# end if-check for categories #} {% endif -%} {% elif disp_tag -%} {% if taxonomy.tags -%} {{ posts::tags(tags=taxonomy.tags) }} {# end if-check for tags #} {% endif -%} {# end if-check for BOTH disp bools #} {% endif -%} {% endmacro taxonomies %} {% macro categories(categories) %} :: { {%- for cat in categories -%} {%- if loop.last -%} {{ cat }} {%- else -%} {{ cat }}, {# end of if-check for whether last item or not #} {%- endif -%} {%- endfor -%}} {# <--- NOTE: OPEN CURLY BRACE #} {% endmacro categories %} {% macro tags(tags) %} :: {% for tag in tags -%} #{{ tag }} {# end of tags for-loop #} {% endfor -%} {% endmacro tags %}