diff --git a/pyproject.toml b/pyproject.toml index ca770d71..8a8b2a9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sphinxawesome-theme" -version = "5.3.0" +version = "5.3.1" description = "An awesome theme for the Sphinx documentation generator" readme = "README.md" authors = ["Kai Welke "] diff --git a/src/sphinxawesome_theme/layout.html b/src/sphinxawesome_theme/layout.html index 4fbd0375..c6ce1d06 100644 --- a/src/sphinxawesome_theme/layout.html +++ b/src/sphinxawesome_theme/layout.html @@ -84,7 +84,9 @@ {%- block extrahead %}{%- endblock extrahead %} - + {#- A blurry background screen for the mobile sidebar -#} {%- if sidebars|length > 0 %} @@ -131,6 +133,9 @@ {%- include "footer.html" %} {%- endblock footer %} + {%- if theme_show_scrolltop|tobool %} + {%- include "scrolltop.html" %} + {%- endif %} {% block scripts %} {%- for js in script_files %} {{ js_tag(js) }} diff --git a/src/sphinxawesome_theme/scrolltop.html b/src/sphinxawesome_theme/scrolltop.html index f86d4e02..c9d178a2 100644 --- a/src/sphinxawesome_theme/scrolltop.html +++ b/src/sphinxawesome_theme/scrolltop.html @@ -1,9 +1,12 @@ {#- A `scroll to top` button. Is shown at the bottom right if `show_scrolltop` is true. -#} -