diff options
| author | Elio Grieco | 2022-05-04 19:58:33 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-30 22:39:55 -0700 |
| commit | 8f70a54e8bba3e29bedea4d3cfcbca1d5b123dd1 (patch) | |
| tree | 25a59222482e5d628e1832b55596d16dc8c4db46 /templates | |
| parent | 03f402c3e4fe8865571cf462e60dec5e0c9b713a (diff) | |
| download | abridge-8f70a54e8bba3e29bedea4d3cfcbca1d5b123dd1.tar.gz abridge-8f70a54e8bba3e29bedea4d3cfcbca1d5b123dd1.tar.bz2 abridge-8f70a54e8bba3e29bedea4d3cfcbca1d5b123dd1.zip | |
Fix conditional, improperly closed tag bug
Because the span tag was placed inside the endif, the span tag would not be properly closed if a page had no categories.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros/macros.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html index c3147aa..bfaaaae 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -1,6 +1,6 @@ {% macro title(page) %} <h1><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h1> -<span>{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind="categories", name=cat) | safe }}">{{ cat }}</a>{% endfor %}] </span> {% endif %} +<span>{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind="categories", name=cat) | safe }}">{{ cat }}</a>{% endfor %}]{% endif %}</span> {% if page.taxonomies.tags %} <span>{% for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a> {% endfor %}</span> {% endif %} |
