diff options
| author | Hysterelius | 2024-04-01 15:03:49 +1100 |
|---|---|---|
| committer | GitHub | 2024-03-31 21:03:49 -0700 |
| commit | 15e029ff031988183f8a01343fc32cc9456c1013 (patch) | |
| tree | e3d2e3d613579b47f7837bdd9790e34929d69d0b | |
| parent | d45bc26c2250f573a0d83f755831857999fc125f (diff) | |
| download | abridge-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
| -rw-r--r-- | templates/page.html | 4 |
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 %} |
