this repo has no description
1{% macro section_meta(section, author) %} 2 <div class="post-meta"> 3 {%- if section.extra["date"] -%} 4 <time class="post-date" datetime="{{ section.extra["date"] }}"> 5 {{ section.extra["date"] | date(format="%Y.%m.%d") }} 6 </time> 7 {%- endif -%} 8 </div> 9{% endmacro section_meta %} 10 11{% macro meta(page, author) %} 12 <div class="post-meta"> 13 <span class="post-date"> 14 {%- if page.date -%} 15 <time class="dt-published" datetime="{{ page.date }}">{{ page.date | date(format="%Y.%m.%d") }}</time> 16 {%- endif -%} 17 18 {%- if page.updated -%} 19 [Updated: <time class="dt-updated" datetime="{{ page.updated }}">{{ page.updated | date(format="%Y.%m.%d") }}</time>] 20 {%- endif -%} 21 </span> 22 23 {{ posts::taxonomies(taxonomy=page.taxonomies, 24 disp_cat=config.extra.show_categories, 25 disp_tag=config.extra.show_tags) }} 26 </div> 27{% endmacro meta %} 28 29{% macro taxonomies(taxonomy, disp_cat, disp_tag) %} 30 {%- if taxonomy.categories -%} 31 {{ posts::categories(categories=taxonomy.categories) }} 32 {%- endif -%} 33 {%- if taxonomy.tags -%} 34 {{ posts::tags(tags=taxonomy.tags) }} 35 {%- endif -%} 36{% endmacro taxonomies %} 37 38{% macro categories(categories) %} 39 :: { 40 {%- for cat in categories -%} 41 {%- if loop.last -%} 42 <a class="p-category" href="{{ get_taxonomy_url(kind="categories", name=cat ) }}">{{ cat }}</a> 43 {%- else -%} 44 <a class="p-category" href="{{ get_taxonomy_url(kind="categories", name=cat ) }}">{{ cat }}</a>, 45 {%- endif -%} 46 {%- endfor -%}}{# <--- NOTE: OPEN CURLY BRACE #} 47{% endmacro categories %} 48 49{% macro tags(tags) %} 50 :: 51 {% for tag in tags -%} 52 #<a class="p-category" href="{{get_taxonomy_url(kind="tags", name=tag )}}">{{ tag }}</a> 53 {% endfor -%} 54{% endmacro tags %}