From 09400c20c75bc1dc64448bbf24b3353ca7280add Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sun, 16 Aug 2020 09:26:29 -0400 Subject: [PATCH] Allow the site to load even if the external CSS does not Our external CSS is only used for the header bar and a few other things - the site will look ugly without, but the rustdoc pages should still be usable. This also changes several ` - - - {%- 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 #} + + + +