提交 c12b20db 编写于 作者: S Samy Pessé

Fix condition for inclusion of css in ebook

上级 37b429ca
......@@ -2,7 +2,7 @@
{% block style %}
{# Include theme css before plugins css #}
{% if config.styles.print|fileExists %}
{% if not (config.styles.print|fileExists) %}
{% if options.format %}
<link rel="stylesheet" href="{{ (options.format + ".css")|resolveAsset }}">
{% else %}
......@@ -15,7 +15,7 @@
{# Custom stylesheets for the book #}
{% for type, style in config.styles %}
{% if style|fileExists and (style == "ebook" or style == "print" or style == options.format) %}
{% if (style|fileExists) and (style == "ebook" or style == "print" or style == options.format) %}
<link rel="stylesheet" href="{{ style|resolveFile }}">
{% endif %}
{% endfor %}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册