We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d225bb + 643d8e9 commit 44bc2dbCopy full SHA for 44bc2db
src/librustdoc/html/templates/page.html
@@ -23,11 +23,13 @@
23
{%- for theme in themes -%}
24
<link rel="stylesheet" disabled href="{{page.root_path|safe}}{{theme}}{{page.resource_suffix}}.css"> {#- -#}
25
{%- endfor -%}
26
+ {%- if !layout.default_settings.is_empty() -%}
27
<script id="default-settings" {# -#}
28
{% for (k, v) in layout.default_settings %}
29
data-{{k}}="{{v}}"
30
31
></script> {#- -#}
32
+ {%- endif -%}
33
<script src="{{static_root_path|safe}}{{files.storage_js}}"></script> {#- -#}
34
{%- if page.css_class.contains("crate") -%}
35
<script defer src="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {#- -#}
0 commit comments