Skip to content

Commit

Permalink
Fix bugs in series feature (#165)
Browse files Browse the repository at this point in the history
* Remove unnecessary <b> tag

* Consistent current page styling

* Fix toc and series bug
  • Loading branch information
Hysterelius authored Apr 1, 2024
1 parent d45bc26 commit 15e029f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -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 %}
Expand All @@ -196,6 +197,7 @@
</div>
{%- endif %}
{%- endif %}
{%- endif %}
{%- endblock toc %}

{%- endblock content %}
Expand Down

0 comments on commit 15e029f

Please sign in to comment.