aboutsummaryrefslogtreecommitdiff
path: root/templates/posts.html
diff options
context:
space:
mode:
authorJieiku2023-05-22 23:07:56 -0700
committerJieiku2023-05-22 23:07:56 -0700
commitd9fb3248650404ad6d078eba39b8b91381b1ebed (patch)
tree74f539e18ab82b355c9a5fba542253aa46715579 /templates/posts.html
parent236919b4e6ce0c144ca4d5f12ab96a90de2042c2 (diff)
downloadabridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.tar.gz
abridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.tar.bz2
abridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.zip
Fixes for uglyurls
Diffstat (limited to 'templates/posts.html')
-rw-r--r--templates/posts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/posts.html b/templates/posts.html
index a353d15..92c07dc 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -27,7 +27,7 @@
{%- for year, posts in section_item.pages | group_by(attribute="year") %}
<h2>{{ year }}</h2>
{%- for post in posts %}
- <p><a href="{{ post.permalink | safe }}">{{ post.title }}</a> - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time></p>
+ <p><a href="{{ post.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ post.title }}</a> - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>