How to Conditionally Import App Blog Plugin Styles For All Pages #483
-
BackgroundDuring #466, Wes asked for help conditionally loading CSS on all pages (initial comment). QuestionHow do I conditionally include Core styles for plugins that can be used anywhere on the site?1 (The condition is whether blog is installed.)2 ProblemCSS can not conditionally, based on Python setting, import the styles into SolutionTemplates can conditionally load stylesheets (like those lines of that file). Stylesheet Table↑ means "import into this file". The question is how to load
Footnotes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@taoteg and I can't think of any other lightweight solution than to use template and |
Beta Was this translation helpful? Give feedback.
@taoteg and I can't think of any other lightweight solution than to use template and
<link>
tag. I will use it when the need first arises (maybe ECEP, this month; definitely TACC, this year).