Rollup merge of #107471 - notriddle:notriddle/default-settings, r=GuillaumeGomez
rustdoc: do not include empty default-settings tag in HTML
This commit is contained in:
commit
44bc2db484
1 changed files with 2 additions and 0 deletions
|
@ -23,11 +23,13 @@
|
|||
{%- for theme in themes -%}
|
||||
<link rel="stylesheet" disabled href="{{page.root_path|safe}}{{theme}}{{page.resource_suffix}}.css"> {#- -#}
|
||||
{%- endfor -%}
|
||||
{%- if !layout.default_settings.is_empty() -%}
|
||||
<script id="default-settings" {# -#}
|
||||
{% for (k, v) in layout.default_settings %}
|
||||
data-{{k}}="{{v}}"
|
||||
{%- endfor -%}
|
||||
></script> {#- -#}
|
||||
{%- endif -%}
|
||||
<script src="{{static_root_path|safe}}{{files.storage_js}}"></script> {#- -#}
|
||||
{%- if page.css_class.contains("crate") -%}
|
||||
<script defer src="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {#- -#}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue