From ae27e05ec50dbf1704c95fbc33cd9fa8a4b7c475 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 23 Aug 2023 14:38:19 +0200 Subject: [PATCH 1/2] Use `css_tag` helper to inject CSS files --- sphinx_rtd_theme/layout.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 94a40cc1c..2f305df89 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -29,15 +29,11 @@ {%- endif %} {%- for css in css_files %} - {%- if css|attr("rel") %} - - {%- else %} - - {%- endif %} + {{ css_tag(css) }} {%- endfor %} {%- for cssfile in extra_css_files %} - + {{ css_tag(css) }} {%- endfor -%} {#- FAVICON From 2450b2da24a6632d318586672a52b7a7c0d4ab0d Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 29 Aug 2023 11:03:27 +0200 Subject: [PATCH 2/2] Typo --- sphinx_rtd_theme/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 2f305df89..e3403e2c2 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -33,7 +33,7 @@ {%- endfor %} {%- for cssfile in extra_css_files %} - {{ css_tag(css) }} + {{ css_tag(cssfile) }} {%- endfor -%} {#- FAVICON