Skip to content

Commit

Permalink
Revert "Fix readthedocs#1522: fix attribute error if css is str"
Browse files Browse the repository at this point in the history
This reverts commit b22a77f.
  • Loading branch information
humitos committed Oct 23, 2023
1 parent b22a77f commit 82ee56f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions sphinx_rtd_theme/layout.html
Expand Up @@ -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
Expand Down

0 comments on commit 82ee56f

Please sign in to comment.