mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2026-10-12 09:24:51 -05:00
Use css_tag helper to inject CSS files (#1519)
* Use `css_tag` helper to inject CSS files * Typo
This commit is contained in:
1 parent
4874e9428d
commit
d34b71bb09
1 file changed
+2
-6
@@ -29,15 +29,11 @@
|
||||
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
||||
{%- endif %}
|
||||
{%- for css in css_files %}
|
||||
{%- if css|attr("rel") %}
|
||||
<link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
|
||||
{%- else %}
|
||||
<link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" />
|
||||
{%- endif %}
|
||||
{{ css_tag(css) }}
|
||||
{%- endfor %}
|
||||
|
||||
{%- for cssfile in extra_css_files %}
|
||||
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
|
||||
{{ css_tag(cssfile) }}
|
||||
{%- endfor -%}
|
||||
|
||||
{#- FAVICON
|
||||
|
||||
Reference in new issue
Block a user