diff --git a/_templates/layout.html b/_templates/layout.html index 79c6bd0..9eb4cdf 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -20,6 +20,16 @@ {%- endif %} {% endblock %} +{#- The theme prints each css_files entry as a string, which Sphinx 9 + no longer allows. css_tag renders the stylesheet objects Sphinx + passes instead. -#} + +{% block css %} +{%- for css in css_files %} +{{ css_tag(css) }} +{%- endfor %} +{%- endblock %} + {% block footer %}