diff --git a/templates/base.html b/templates/base.html index 1bf090f9d..b3e4519cd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,37 +9,32 @@ {%- block meta -%}{%- endblock meta -%} - {# External styles #} - - - - {# Docs.rs styles #} - {%- block css -%}{%- endblock css -%} - {%- block title -%} Docs.rs {%- endblock title -%} - {%- include "header/topbar.html" -%} + {# External styles, loaded in the body so the site will be available even if these don't load #} + {%- block css -%}{%- endblock css -%} + + + + {%- include "header/topbar.html" -%} {%- block header %}{% endblock header -%} - {%- block body -%}{%- endblock body -%} - - - - - - {%- block javascript -%}{%- endblock javascript -%} + + + {%- block javascript -%}{%- endblock javascript -%} + diff --git a/templates/rustdoc/body.html b/templates/rustdoc/body.html index df6af7910..7eddf351e 100644 --- a/templates/rustdoc/body.html +++ b/templates/rustdoc/body.html @@ -3,6 +3,13 @@ {# The url of the current release, `/crate/:name/:version` #} {%- set crate_url = "/crate/" ~ krate.name ~ "/" ~ krate.version -%} +{# Load CSS in the body, not the head, so that pages will still be visible even if the external provider goes down #} + + + +