Revert "Fix #1522: fix attribute error if css is str"

This reverts commit b22a77f35a.
This commit is contained in:
Manuel Kaufmann committed 2023-10-23 17:28:30 +02:00
1 parent b22a77f35a
commit 82ee56f89c
1 file changed
+2 -10
+2 -10
View File
@@ -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