mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2026-10-13 18:02:01 -05:00
Revert "Fix #1522: fix attribute error if css is str"
This reverts commit b22a77f35a.
This commit is contained in:
1 parent
b22a77f35a
commit
82ee56f89c
1 file changed
+2
-10
@@ -29,19 +29,11 @@
|
||||
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
||||
{%- endif %}
|
||||
{%- for css in css_files %}
|
||||
{% if css|attr("filename") -%}
|
||||
{{ css_tag(css) }}
|
||||
{%- else -%}
|
||||
<link rel="stylesheet" href="{{ pathto(css, 1)|escape }}" type="text/css" />
|
||||
{%- endif %}
|
||||
{{ css_tag(css) }}
|
||||
{%- endfor %}
|
||||
|
||||
{%- for cssfile in extra_css_files %}
|
||||
{% if css|attr("filename") -%}
|
||||
{{ css_tag(css) }}
|
||||
{%- else -%}
|
||||
<link rel="stylesheet" href="{{ pathto(css, 1)|escape }}" type="text/css" />
|
||||
{%- endif %}
|
||||
{{ css_tag(cssfile) }}
|
||||
{%- endfor -%}
|
||||
|
||||
{#- FAVICON
|
||||
|
||||
Reference in new issue
Block a user