diff --git a/src/_includes/macros/catalogue.njk b/src/_includes/macros/catalogue.njk index 1c0f554..92c26c4 100644 --- a/src/_includes/macros/catalogue.njk +++ b/src/_includes/macros/catalogue.njk @@ -1,11 +1,10 @@ {% from "macros/utils.njk" import stars %} -{% macro one(post, format) %} +{% macro one(post, format, showType = true) %}
- {{ post.data.title }} - -
-

{{ post.data.tags[1] }}

+
{{ post.data.title }} + {% if showType %}

{{ post.data.tags[1] }}

{% endif %}
+
{% if post.data.rating %} {{ stars(post.data.rating) }} {% endif %} @@ -13,17 +12,17 @@
{% endmacro %} -{% macro list(posts) %} +{% macro list(posts, showType = true) %}
    {% for post in posts %}
  1. - {{ one(post, format) }} + {{ one(post, format, showType) }}
  2. {% endfor %}
{% endmacro %} -{% macro yearList(posts, year, format = "MM/DD") %} +{% macro yearList(posts, year, format = "MM/DD", showType = true) %}

{{ year }}

diff --git a/src/_includes/partials/catalogue-types.html b/src/_includes/partials/catalogue-types.html index 8c1906d..bafa833 100644 --- a/src/_includes/partials/catalogue-types.html +++ b/src/_includes/partials/catalogue-types.html @@ -1,5 +1,8 @@ {% set catalogueTypes = collections.catalogueByType | keys %}