Skip to content

Commit

Permalink
fix(taxonomy): fix term links
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Mar 31, 2024
1 parent 6d2a07e commit f105dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/taxonomy_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<div class="inner-post content">
{% block date %}{{ super() }}{% endblock date%}
<div class="entry-meta">
<p>{% for term in terms %}#<a href="{{ config.base_url ~ "/" ~ taxonomy.name ~ "/" ~ term.name }}">{{ term.name }}</a><sup>{{ term.pages | length }}</sup> {% endfor %}</p>
<p>{% for term in terms %}#<a href="{{ config.base_url ~ "/" ~ taxonomy.name ~ "/" ~ term.name ~ "/" | safe }}">{{ term.name }}</a><sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
<h2 class="entry-title"><a href="{{ config.base_url ~ "/" ~ taxonomy.name ~ "/" ~ term.name }}">#</a>{{ term.name | safe}}</h2>
<h2 class="entry-title"><a href="{{ config.base_url ~ "/" ~ taxonomy.name ~ "/" ~ term.name ~ "/" | safe }}">#</a>{{ term.name | safe}}</h2>
<ul>
{%- for page in term.pages %}
<li class="entry-info"><a href="{{ page.permalink | safe }}">{{ page.title | safe }}</a> <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></li>
Expand Down

0 comments on commit f105dd7

Please sign in to comment.