aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHysterelius2024-04-01 15:03:49 +1100
committerGitHub2024-03-31 21:03:49 -0700
commit15e029ff031988183f8a01343fc32cc9456c1013 (patch)
treee3d2e3d613579b47f7837bdd9790e34929d69d0b /templates
parentd45bc26c2250f573a0d83f755831857999fc125f (diff)
downloadabridge-15e029ff031988183f8a01343fc32cc9456c1013.tar.gz
abridge-15e029ff031988183f8a01343fc32cc9456c1013.tar.bz2
abridge-15e029ff031988183f8a01343fc32cc9456c1013.zip
Fix bugs in series feature (#165)
* Remove unnecessary <b> tag * Consistent current page styling * Fix toc and series bug
Diffstat (limited to 'templates')
-rw-r--r--templates/page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/page.html b/templates/page.html
index 8b63ac7..e2a807c 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -99,7 +99,7 @@
{%- if page.extra.toc %}
{%- set toc = page.toc %}
{%- endif %}
- {%- if toc %}
+ {%- if toc or page.extra.series %}
<div class="sblock">
{%- if page.extra.series %}
@@ -178,6 +178,7 @@
</div>
{%- endif %}
+ {%- if toc %}
<div class="blockdiv sticky">
<a class="b s150" href="#">{{ macros::translate(key="Index", default="Index", i18n=i18n) }}</a>
{%- for h in toc %}
@@ -196,6 +197,7 @@
</div>
{%- endif %}
{%- endif %}
+ {%- endif %}
{%- endblock toc %}
{%- endblock content %}