aboutsummaryrefslogtreecommitdiff
path: root/templates/tags
diff options
context:
space:
mode:
authorJieiku2023-05-22 23:07:56 -0700
committerJieiku2023-05-22 23:07:56 -0700
commitd9fb3248650404ad6d078eba39b8b91381b1ebed (patch)
tree74f539e18ab82b355c9a5fba542253aa46715579 /templates/tags
parent236919b4e6ce0c144ca4d5f12ab96a90de2042c2 (diff)
downloadabridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.tar.gz
abridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.tar.bz2
abridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.zip
Fixes for uglyurls
Diffstat (limited to 'templates/tags')
-rw-r--r--templates/tags/list.html4
-rw-r--r--templates/tags/single.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html
index c703761..a24ef09 100644
--- a/templates/tags/list.html
+++ b/templates/tags/list.html
@@ -22,9 +22,9 @@
<p>{% for term in terms %} #<a href="#{{ term.name }}">{{ term.name }}</a><sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
- <h2 id="{{ term.name }}">#<a href="{{ term.permalink | safe }}">{{ term.name }}</a></h2>
+ <h2 id="{{ term.name }}">#<a href="{{ term.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>
diff --git a/templates/tags/single.html b/templates/tags/single.html
index ad8caeb..8984219 100644
--- a/templates/tags/single.html
+++ b/templates/tags/single.html
@@ -21,7 +21,7 @@
{%- for year, posts in term.pages | group_by(attribute="year") %}
<h3>{{ year }}</h3>
{%- for page in posts %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>