8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
css_files
1 parent 84aea9b commit 4498e97Copy full SHA for 4498e97
sphinx_rtd_theme/layout.html
@@ -29,7 +29,11 @@
29
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
30
{%- endif %}
31
{%- for css_file in css_files %}
32
- {{ css_tag(css_file) }}
+ {%- if css_file|attr("filename") %}
33
+ {{ css_tag(css_file) }}
34
+ {%- else %}
35
+ <link rel="stylesheet" href="{{ pathto(css_file, 1)|escape }}" type="text/css" />
36
+ {%- endif %}
37
{%- endfor %}
38
39
{# "extra_css_files" is a theme option and it's always a string #}
0 commit comments