diff --git a/templates/macros.html b/templates/macros.html
index 053598a..b66b46e 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -6,7 +6,7 @@
{% if loop.index > count and count != 0 %}
{% break %}
{% endif %}
- {{ macros::print_article(page=page) }}
+ {{ self::print_article(page=page) }}
{% endfor %}
{% endmacro %}
@@ -27,18 +27,32 @@
{% endif %}
{% if page.taxonomies.categories %}
- {{ self::list_taxonomy(kind="categories", prepend="#") }}
+ {{ self::list_taxonomy(kind="categories", page=page.taxonomies.categories, prepend="#") }}
{% endif %}
{% endif %}
{% endmacro %}
-{% macro list_taxonomy(kind, prepend="") %}
+{% macro list_taxonomy(kind, page=false, prepend="") %}
+ {#
+ Option `kind` must always be set and specifies the wanted taxonomy.
+
+ If `page` is set, this macro only prints items specific for this page.
+ Otherwise it prints all items. It expects `page.taxonomies.`.
+
+ Option `prepend` can be used to prepend any string to the item name.
+ #}
-{% endmacro list_categories %}
+{% endmacro %}