mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 00:14:05 +00:00
feat(widget): add css_class option to customize widget style
Allows user to customize the style of a particular widget using the CSS plugin feature. For example, the background of a widget could be changed to an image or gradient. Close #322
This commit is contained in:
1 parent
58dd61b0e7
commit
a4ffd6efc5
1 file changed
+1
-1
@@ -18,7 +18,7 @@
|
||||
{{ if in (slice "hero" "hero_carousel") $page.Params.widget }}
|
||||
{{ partial $widget $params }}
|
||||
{{ else }}
|
||||
<section id="{{ $page.File.TranslationBaseName }}" class="home-section">
|
||||
<section id="{{ $page.File.TranslationBaseName }}" class="home-section{{ with $page.Params.css_class }} {{ . }}{{ end }}">
|
||||
<div class="container">
|
||||
{{ partial $widget $params }}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user