diff --git a/build_files/templates/base.html b/build_files/templates/base.html new file mode 100644 index 000000000..e9f9363ed --- /dev/null +++ b/build_files/templates/base.html @@ -0,0 +1,11 @@ +{%- extends "!base.html" -%} + +{%- block linktags -%} +{{ super() }} +{%- include "components/linktags.html" -%} +{%- endblock -%} + +{%- block theme_scripts -%} +{{ super() }} + +{%- endblock -%} \ No newline at end of file diff --git a/build_files/templates/footer.html b/build_files/templates/components/footer_contribute.html similarity index 79% rename from build_files/templates/footer.html rename to build_files/templates/components/footer_contribute.html index 71f07a1e8..530fdcfaf 100644 --- a/build_files/templates/footer.html +++ b/build_files/templates/components/footer_contribute.html @@ -1,21 +1,19 @@ -{%- extends "!footer.html" %} -{%- block extrafooter %} {%- if not pagename in ("search", "404", "genindex", "advanced/command_line/arguments") and hasdoc(pagename) %} -{%- endif %} -{% endblock %} +{%- endif %} \ No newline at end of file diff --git a/build_files/templates/layout.html b/build_files/templates/components/linktags.html similarity index 94% rename from build_files/templates/layout.html rename to build_files/templates/components/linktags.html index 1d7fa8ba1..747a8bf22 100644 --- a/build_files/templates/layout.html +++ b/build_files/templates/components/linktags.html @@ -1,5 +1,3 @@ -{%- extends "!layout.html" %} -{%- block linktags %} @@ -20,6 +18,4 @@ - -{{ super() }} -{%- endblock %} + \ No newline at end of file diff --git a/build_files/templates/page.html b/build_files/templates/page.html new file mode 100644 index 000000000..f220bfeee --- /dev/null +++ b/build_files/templates/page.html @@ -0,0 +1,6 @@ +{%- extends "!page.html" -%} + +{%- block footer -%} +{{ super() }} +{%- include "components/footer_contribute.html" -%} +{%- endblock footer -%} \ No newline at end of file diff --git a/build_files/templates/versions.html b/build_files/templates/sidebar/variant-selector.html similarity index 71% rename from build_files/templates/versions.html rename to build_files/templates/sidebar/variant-selector.html index ec4e3ea94..9bf23d3b6 100644 --- a/build_files/templates/versions.html +++ b/build_files/templates/sidebar/variant-selector.html @@ -2,28 +2,24 @@