File tree Expand file tree Collapse file tree
component-library/components/video-message Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 {{ if site.Params.env_bookshop_live }}
2727 {{/* Define dummy content as we cannot retrieve video data in live mode */}}
2828 {{- partial "assets/live-image.html" (dict
29- "src" "/img/placeholder-video.svg"
30- "ratio" "21x9"
29+ "src" "/img/placeholder-video.svg"
30+ "ratio" "21x9"
3131 "wrapper" (printf "text-center mb-%d" $padding.y)) -}}
3232 {{ else }}
3333 < div class ="video-container{{ if $border }} video-container-border{{ end}} {{ with $color }}bg-{{ . }}{{ end }} ">
Original file line number Diff line number Diff line change 1818
1919{{/* Main code */}}
2020{{ if not $args.err }}
21- {{ $contact := "" }}
22- {{ if $args.contact }}
23- {{ $contact = partial "utilities/GetContact" (dict
24- "contact" $args.contact
25- "data" $args.data
26- "language-tag" site.Language.Lang
27- ) }}
28- {{ end }}
29-
3021 {{ $illustration := dict }}
31- {{ if and $contact (reflect.IsMap $contact) $contact.image }}
22+ {{ if site.Params.env_bookshop_live }}
3223 {{ $illustration = dict
33- "image" $contact.image
24+ "image" "/img/placeholder.svg"
3425 "ratio" "1x1"
3526 "class" $args.class
36- "caption" $contact.name
27+ "caption" $args.contact
3728 "caption-url" $args.captionUrl
3829 }}
39- {{ else if $args.illustration }}
40- {{ $illustration = $args.illustration }}
30+ {{ else }}
31+ {{ $contact := "" }}
32+ {{ if $args.contact }}
33+ {{ $contact = partial "utilities/GetContact" (dict
34+ "contact" $args.contact
35+ "data" $args.data
36+ "language-tag" site.Language.Lang
37+ ) }}
38+ {{ end }}
39+
40+ {{ if and $contact (reflect.IsMap $contact) $contact.image }}
41+ {{ $illustration = dict
42+ "image" $contact.image
43+ "ratio" "1x1"
44+ "class" $args.class
45+ "caption" $contact.name
46+ "caption-url" $args.captionUrl
47+ }}
48+ {{ else if $args.illustration }}
49+ {{ $illustration = $args.illustration }}
50+ {{ end }}
4151 {{ end }}
4252
4353 {{ $heading := "" }}
5464
5565 {{ partial "assets/hero.html" (dict
5666 "page" $args.page
57- "heading" (merge $heading (dict "size" 4))
67+ "heading" (merge $heading (dict "size" 4 "width" 10 ))
5868 "background" $args.background
5969 "illustration" $illustration
6070 "order" $args.order
You can’t perform that action at this time.
0 commit comments