do not output page options <style> tag if explicitly set to nil
This commit is contained in:
parent
9a1b0d9ed6
commit
17e8876070
|
@ -66,8 +66,7 @@
|
||||||
|
|
||||||
(defn inject-options-into-html!
|
(defn inject-options-into-html!
|
||||||
[^Document doc options]
|
[^Document doc options]
|
||||||
(let [base-uri (->base-uri options)
|
(let [head-tag (-> doc (.select "head") (.first))]
|
||||||
head-tag (-> doc (.select "head") (.first))]
|
(if (:page options) (append-page-options-style-tag! head-tag options))
|
||||||
(append-page-options-style-tag! head-tag options)
|
|
||||||
(if (:include-base-css? options) (append-base-css-link-tag! head-tag))
|
(if (:include-base-css? options) (append-base-css-link-tag! head-tag))
|
||||||
doc))
|
doc))
|
||||||
|
|
Loading…
Reference in a new issue