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 -%}
|
{%- for theme in themes -%}
|
||||||
<link rel="stylesheet" disabled href="{{page.root_path|safe}}{{theme}}{{page.resource_suffix}}.css"> {#- -#}
|
<link rel="stylesheet" disabled href="{{page.root_path|safe}}{{theme}}{{page.resource_suffix}}.css"> {#- -#}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
{%- if !layout.default_settings.is_empty() -%}
|
||||||
<script id="default-settings" {# -#}
|
<script id="default-settings" {# -#}
|
||||||
{% for (k, v) in layout.default_settings %}
|
{% for (k, v) in layout.default_settings %}
|
||||||
data-{{k}}="{{v}}"
|
data-{{k}}="{{v}}"
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
></script> {#- -#}
|
></script> {#- -#}
|
||||||
|
{%- endif -%}
|
||||||
<script src="{{static_root_path|safe}}{{files.storage_js}}"></script> {#- -#}
|
<script src="{{static_root_path|safe}}{{files.storage_js}}"></script> {#- -#}
|
||||||
{%- if page.css_class.contains("crate") -%}
|
{%- if page.css_class.contains("crate") -%}
|
||||||
<script defer src="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {#- -#}
|
<script defer src="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {#- -#}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue