1010{{ $width_mobile = .Get "width_mobile" }}
1111{{ end }}
1212
13- <!-- in case 3 images -->
1413{{ if .Get "image3" }}
1514< div class ="row mb-5 align-items-center " id ={{ .Get "id" }}>
15+ <!-- image1 -->
1616 {{ $image1 := .Get "image1" | relURL }}
1717 {{ $alt1 := .Get "alt1" | relURL }}
1818 {{ $caption1 := .Get "caption1" | relURL }}
19- {{ $image2 := .Get "image2" | relURL }}
20- {{ $alt2 := .Get "alt2" | relURL }}
21- {{ $caption2 := .Get "caption2" | relURL }}
22- {{ $image3 := .Get "image3" | relURL }}
23- {{ $alt3 := .Get "alt3" | relURL }}
24- {{ $caption3 := .Get "caption3" | relURL }}
25-
26- <!-- image1 -->
27- {{ if .Get "link1" }}
2819 < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
20+ {{ if .Get "link1" }}
2921 < a href ={{ .Get "link1" }} target="_blank ">
22+ {{ end }}
3023 < img src ={{ .Get "image1" }} alt={{ .Get "alt1" }} title={{ .Get "caption1" }}> </ img >
24+ {{ if .Get "link1" }}
3125 </ a >
26+ {{ end }}
3227 </ div >
33- {{ else }}
34- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
35- < img src ={{ .Get "image1" }} alt={{ .Get "alt1" }} title={{ .Get "caption1" }}> </ img >
36- </ div >
37- {{ end }}
3828 <!-- /image1 -->
39-
4029 <!-- image2 -->
41- {{ if .Get "link2" }}
30+ {{ $image2 := .Get "image2" | relURL }}
31+ {{ $alt2 := .Get "alt2" | relURL }}
32+ {{ $caption2 := .Get "caption2" | relURL }}
4233 < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
34+ {{ if .Get "link2" }}
4335 < a href ={{ .Get "link2" }} target="_blank ">
36+ {{ end }}
4437 < img src ={{ .Get "image2" }} alt={{ .Get "alt2" }} title={{ .Get "caption2" }}> </ img >
38+ {{ if .Get "link2" }}
4539 </ a >
40+ {{ end }}
4641 </ div >
47- {{ else }}
48- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
49- < img src ={{ .Get "image2" }} alt={{ .Get "alt2" }} title={{ .Get "caption2" }}> </ img >
50- </ div >
51- {{ end }}
5242 <!-- /image2 -->
53-
5443 <!-- image3 -->
55- {{ if .Get "link3" }}
44+ {{ $image3 := .Get "image3" | relURL }}
45+ {{ $alt3 := .Get "alt3" | relURL }}
46+ {{ $caption3 := .Get "caption3" | relURL }}
5647 < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
48+ {{ if .Get "link3" }}
5749 < a href ={{ .Get "link3" }} target="_blank ">
50+ {{ end }}
5851 < img src ={{ .Get "image3" }} alt={{ .Get "alt3" }} title={{ .Get "caption3" }}> </ img >
52+ {{ if .Get "link3" }}
5953 </ a >
54+ {{ end }}
6055 </ div >
61- {{ else }}
62- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
63- < img src ={{ .Get "image3" }} alt={{ .Get "alt3" }} title={{ .Get "caption3" }}> </ img >
64- </ div >
65- {{ end }}
6656 <!-- /image3 -->
67- </ div >
68- <!-- /in case 3 images -->
69-
70- <!-- in case 2 images -->
71- {{ else if .Get "image2" }}
72- < div class ="row mb-5 align-items-center " id ={{ .Get "id" }}>
73- {{ $image1 := .Get "image1" | relURL }}
74- {{ $alt1 := .Get "alt1" | relURL }}
75- {{ $caption1 := .Get "caption1" | relURL }}
76- {{ $image2 := .Get "image2" | relURL }}
77- {{ $alt2 := .Get "alt2" | relURL }}
78- {{ $caption2 := .Get "caption2" | relURL }}
79-
80- <!-- image1 -->
81- {{ if .Get "link1" }}
82- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
83- < a href ={{ .Get "link1" }} target="_blank ">
84- < img src ={{ .Get "image1" }} alt={{ .Get "alt1" }} title={{ .Get "caption1" }}> </ img >
85- </ a >
86- </ div >
87- {{ else }}
88- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
89- < img src ={{ .Get "image1" }} alt={{ .Get "alt1" }} title={{ .Get "caption1" }}> </ img >
90- </ div >
57+ <!-- image4 -->
58+ {{ $image4 := .Get "image4" | relURL }}
59+ {{ $alt4 := .Get "alt4" | relURL }}
60+ {{ $caption4 := .Get "caption4" | relURL }}
61+ < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
62+ {{ if .Get "link4" }}
63+ < a href ={{ .Get "link4" }} target="_blank ">
9164 {{ end }}
92- <!-- /image1 -->
93-
94- <!-- image2 -->
95- {{ if .Get "link2" }}
96- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
97- < a href ={{ .Get "link2" }} target="_blank ">
98- < img src ={{ .Get "image2" }} alt={{ .Get "alt2" }} title={{ .Get "caption2" }}> </ img >
99- </ a >
100- </ div >
101- {{ else }}
102- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
103- < img src ={{ .Get "image2" }} alt={{ .Get "alt2" }} title={{ .Get "caption2" }}> </ img >
104- </ div >
65+ < img src ={{ .Get "image4" }} alt={{ .Get "alt4" }} title={{ .Get "caption4" }}> </ img >
66+ {{ if .Get "link4" }}
67+ </ a >
10568 {{ end }}
106- <!-- /image2 -->
107-
108- </ div >
109- <!-- /in case 2 images -->
110-
111- <!-- in case 1 image -->
112- {{ else }}
113- < div class ="row mb-5 align-items-center " id ={{ .Get "id" }}>
114- {{ $image1 := .Get "image1" | relURL }}
115- {{ $alt1 := .Get "alt1" | relURL }}
116- {{ $caption1 := .Get "caption1" | relURL }}
117-
118- <!-- image1 -->
119- {{ if .Get "link1" }}
120- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
121- < a href ={{ .Get "link1" }} target="_blank ">
122- < img src ={{ .Get "image1" }} alt={{ .Get "alt1" }} title={{ .Get "caption1" }}> </ img >
123- </ a >
124- </ div >
125- {{ else }}
126- < div class ="col-lg-{{ $width_desktop }} col-{{ $width_mobile }} center-block ">
127- < img src ={{ .Get "image1" }} alt={{ .Get "alt1" }} title={{ .Get "caption1" }}> </ img >
128- </ div >
129- {{ end }}
130- <!-- /image1 -->
131-
69+ </ div >
70+ <!-- /image4 -->
13271</ div >
133- <!-- /in case 1 image -->
134-
13572{{ end }}
0 commit comments