Skip to content

Commit fd50fc1

Browse files
authored
Merge pull request #41 from gethinode/develop
Develop
2 parents 0ae359b + 67ca727 commit fd50fc1

2 files changed

Lines changed: 27 additions & 17 deletions

File tree

component-library/components/video-message/video-message.hugo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
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 }}">

layouts/partials/assets/contact.html

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,36 @@
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 := "" }}
@@ -54,7 +64,7 @@
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

0 commit comments

Comments
 (0)