{%- macro render_archives(archives, max=0) -%} {%- for archive in archives -%} {%- if max > 0 and loop.index > max -%} {%- break -%} {%- endif -%}
  • {{ archive.title }} {%- if archive.sticky > 0 -%} pinned {%- endif -%} {%- for category in archive.categories -%} {{ category.title }} {%- endfor -%} {%- for tag in archive.tags -%} {{ tag.title }} {%- endfor -%}
  • {%- endfor -%} {%- endmacro -%}