aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorJieiku2023-05-22 23:07:56 -0700
committerJieiku2023-05-22 23:07:56 -0700
commitd9fb3248650404ad6d078eba39b8b91381b1ebed (patch)
tree74f539e18ab82b355c9a5fba542253aa46715579 /templates/page.html
parent236919b4e6ce0c144ca4d5f12ab96a90de2042c2 (diff)
downloadabridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.tar.gz
abridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.tar.bz2
abridge-d9fb3248650404ad6d078eba39b8b91381b1ebed.zip
Fixes for uglyurls
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/page.html b/templates/page.html
index 6d5188d..ba2b451 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -60,12 +60,12 @@
<h3>{%- if lang != config.default_language %}{{ trans(key="Index" | safe, lang=lang) }}{% else %}Index{% endif %}</h3>
{%- for h in toc %}
<div class="toc-item">
- <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a>
+ <a class="subtext" href="#{{h.id | safe}}">{{ h.title }}</a>
</div>
{%- if h.children %}
{%- for h2 in h.children %}
<div class="toc-item-child">
- <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a>
+ <a class="subtext" href="#{{h2.id | safe}}"><small>- {{ h2.title }}</small></a>
</div>
{%- endfor %}
{%- endif %}