HUGO
Use conditional for css style with shortcode
support
bep
July 8, 2020, 10:05am
2
{{ if or (.HasShortcode “s1”) (.HasShortcode “s2”) }}
show post in topic
Related topics
Topic
Replies
Views
Activity
Conditionally load CSS
support
8
605
August 28, 2023
Pipes ExecuteAsTemplate
support
5
614
April 18, 2020
Best Practice?: CSS/JS Code in Shortcode
support
1
538
July 19, 2017
Can code with conditionals be partialCached?
support
2
272
October 15, 2023
Best practices for shortcode files
support
3
910
January 5, 2021