aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/macros.html
diff options
context:
space:
mode:
author1peter102024-04-06 18:59:54 +0200
committerGitHub2024-04-06 09:59:54 -0700
commit46a4814400126555170c480215a4b44a7bc737bc (patch)
tree97e01c4ebdd1eca07397ae0e34fce3b7111afb59 /templates/macros/macros.html
parent15e029ff031988183f8a01343fc32cc9456c1013 (diff)
downloadabridge-46a4814400126555170c480215a4b44a7bc737bc.tar.gz
abridge-46a4814400126555170c480215a4b44a7bc737bc.tar.bz2
abridge-46a4814400126555170c480215a4b44a7bc737bc.zip
macros.html: Add divider if a post has mulitple categories (#166)
Co-authored-by: Peter <peter@linmob.net>
Diffstat (limited to 'templates/macros/macros.html')
-rw-r--r--templates/macros/macros.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index d39b1cd..0473399 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -89,7 +89,7 @@
{%- if config.extra.meta_post.divider %}<span class="hpad">{{ config.extra.meta_post.divider | safe }}</span>{%- else %} <span class="rpad"></span> {%- endif %}{%- endif %}{% endif %}
{#- Categories #}
- {%- if page.taxonomies.categories %} {%- if config.extra.icon_info %}<i class="{{ config.extra.icon_info }}"></i> {% endif %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind='categories', name=cat, lang=lang) | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ cat }}</a>{% endfor %}]{% endif %}
+ {%- if page.taxonomies.categories %} {%- if config.extra.icon_info %}<i class="{{ config.extra.icon_info }}"></i> {% endif %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind='categories', name=cat, lang=lang) | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ cat }}</a>{%- if not loop.last %}, {% endif %}{% endfor %}]{% endif %}
{#- Tags #}
{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>
@@ -163,7 +163,7 @@
{%- if config.extra.meta_index.divider %}<span class="hpad">{{ config.extra.meta_index.divider | safe }}</span>{%- else %} <span class="rpad"></span> {%- endif %}{%- endif %}{% endif %}
{#- Categories #}
- {%- if page.taxonomies.categories %} {%- if config.extra.icon_info %}<i class="{{ config.extra.icon_info }}"></i> {% endif %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind='categories', name=cat, lang=lang) | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ cat }}</a>{% endfor %}]{% endif %}
+ {%- if page.taxonomies.categories %} {%- if config.extra.icon_info %}<i class="{{ config.extra.icon_info }}"></i> {% endif %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind='categories', name=cat, lang=lang) | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ cat }}</a>{%- if not loop.last %}, {% endif %}{% endfor %}]{% endif %}
{#- Tags #}
{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>