Compare commits

...
4 Commits
Author SHA1 Message Date
Anthony Johnson dca4fc7a00 Normalize variable names 2023-10-23 13:06:43 -07:00
Manuel Kaufmann c4edd8b067 Use css_tag only for standard CSS files from Sphinx
... and keep using the custom `link` HTML tag for CSS files included via the
HTML theme option `extra_css_files`.
2023-10-23 17:28:46 +02:00
Manuel Kaufmann 82ee56f89c Revert "Fix #1522: fix attribute error if css is str"
This reverts commit b22a77f35a.
2023-10-23 17:28:30 +02:00
Mathieu Leplatre b22a77f35a Fix #1522: fix attribute error if css is str 2023-09-28 13:18:44 +02:00
+5 -4
View File
@@ -28,12 +28,13 @@
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
{%- endif %}
{%- for css in css_files %}
{{ css_tag(css) }}
{%- for css_file in css_files %}
{{ css_tag(css_file) }}
{%- endfor %}
{%- for cssfile in extra_css_files %}
{{ css_tag(cssfile) }}
{# "extra_css_files" is a theme option and it's always a string #}
{%- for css_file in extra_css_files %}
<link rel="stylesheet" href="{{ pathto(css_file, 1)|escape }}" type="text/css" />
{%- endfor -%}
{#- FAVICON