mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
feat: blocks v2: background.video.path -> background.video.filename
This commit is contained in:
1 parent
2c00b903e6
commit
943f2eb3ea
3 files changed
+9
-9
No files matched your search
@@ -31,12 +31,12 @@
|
||||
{{ end }}
|
||||
|
||||
{{ $bg_video := "" }}
|
||||
{{ if $bg.video.path }}
|
||||
{{ $bg_video = resources.Get (printf "media/%s" $bg.video.path) }}
|
||||
{{ end }}
|
||||
{{ $bg_video_class := "" }}
|
||||
{{ if $bg.video.flip }}
|
||||
{{ $bg_video_class = "flip" }}
|
||||
{{ if $bg.video.filename }}
|
||||
{{ $bg_video = resources.Get (printf "media/%s" $bg.video.filename) }}
|
||||
{{ if $bg.video.flip }}
|
||||
{{ $bg_video_class = "flip" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $bg.image.filename }}
|
||||
@@ -76,7 +76,7 @@
|
||||
{{ $style = print $style $style_clip_path }}
|
||||
{{ end }}
|
||||
|
||||
{{ with ($block.design.css_style | default $block.Params.advanced.css_style) }}
|
||||
{{ with $block.design.css_style }}
|
||||
{{ $style = print $style . }}
|
||||
{{ end }}
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
{{ $hash_id := $block.id | default (printf "section-%s" (replace $block_type "." "-")) }}
|
||||
|
||||
{{ $widget_args := dict "wcPage" $page "wcBlock" $block "wcIdentifier" $hash_id }}
|
||||
{{ $css_classes := $block.design.css_class | default $block.Params.advanced.css_class | default "" }}
|
||||
{{ $css_classes := $block.design.css_class | default "" }}
|
||||
{{ $extra_attributes := "" }}
|
||||
{{ $use_container := true }}
|
||||
{{ $columns := $block.design.columns | default "1" }}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.107.0"
|
||||
HUGO_VERSION = "0.108.0"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
[context.production.environment]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.97.3"
|
||||
HUGO_VERSION = "0.108.0"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
[context.production.environment]
|
||||
|
||||
Reference in new issue
Block a user