1
1
{{ $sectionTitle := .Scratch.Get "sectionTitle" }}
2
2
{{ with (index .Site.Data.landing $sectionTitle) }}
3
3
{{ if eq .enable true }}
4
- < div class ="container mt-100 mt-60 ">
5
- < div class ="row justify-content-center ">
6
- < div class ="col-12 text-center ">
7
- < div class ="section-title mb-4 pb-2 ">
8
- {{ with .title }}
9
- < h4 class ="title fw-bold mb-4 "> {{ . }}</ h4 >
10
- {{ end }}
11
- {{ with .subtitle }}
12
- < p class ="text-muted para-desc mb-0 mx-auto "> {{ . | markdownify }}</ p >
13
- {{ end }}
14
- </ div >
15
- </ div > <!--end col-->
16
- </ div > <!--end row-->
4
+ < section id ="{{ $sectionTitle }} ">
5
+ < div class ="container mt-100 mt-60 ">
6
+ < div class ="row justify-content-center ">
7
+ < div class ="col-12 text-center ">
8
+ < div class ="section-title mb-4 pb-2 ">
9
+ {{ with .title }}
10
+ < h4 class ="title fw-bold mb-4 "> {{ . }}</ h4 >
11
+ {{ end }}
12
+ {{ with .subtitle }}
13
+ < p class ="text-muted para-desc mb-0 mx-auto "> {{ . | markdownify }}</ p >
14
+ {{ end }}
15
+ </ div >
16
+ </ div > <!--end col-->
17
+ </ div > <!--end row-->
17
18
18
- < div class ="row justify-content-center ">
19
- < div class ="col-lg-8 col-md-12 mt-3 pt-2 text-center ">
20
- < ul class ="nav nav-pills nav-justified flex-column flex-sm-row rounded bg-primary " id ="pills-tab-{{ $sectionTitle }} " role ="tablist ">
21
- {{ range $index, $value := .items }}
22
- < li class ="nav-item ">
23
- < a class ="nav-link rounded{{ if (eq $index 0) }} active{{ end }} " id ="{{ anchorize .title }}-tab " data-bs-toggle ="pill " href ="#pills-{{ $sectionTitle }}-{{ anchorize .title }} " role ="tab " aria-controls ="pills-{{ anchorize .title }} " aria-selected ="false ">
24
- < div class ="text-center py-2 ">
25
- < p class ="mb-0 fs-6 fw-semibold "> {{ .title }}</ p >
26
- </ div >
27
- </ a > <!--end nav link-->
28
- </ li > <!--end nav item-->
29
- {{ end }}
30
- </ ul > <!--end nav pills-->
19
+ < div class ="row justify-content-center ">
20
+ < div class ="col-lg-8 col-md-12 mt-3 pt-2 text-center ">
21
+ < ul class ="nav nav-pills nav-justified flex-column flex-sm-row rounded bg-primary " id ="pills-tab-{{ $sectionTitle }} " role ="tablist ">
22
+ {{ range $index, $value := .items }}
23
+ < li class ="nav-item ">
24
+ < a class ="nav-link rounded{{ if (eq $index 0) }} active{{ end }} " id ="{{ anchorize .title }}-tab " data-bs-toggle ="pill " href ="#pills-{{ $sectionTitle }}-{{ anchorize .title }} " role ="tab " aria-controls ="pills-{{ anchorize .title }} " aria-selected ="false ">
25
+ < div class ="text-center py-2 ">
26
+ < p class ="mb-0 fs-6 fw-semibold "> {{ .title }}</ p >
27
+ </ div >
28
+ </ a > <!--end nav link-->
29
+ </ li > <!--end nav item-->
30
+ {{ end }}
31
+ </ ul > <!--end nav pills-->
32
+ </ div >
31
33
</ div >
32
- </ div >
33
34
34
- < div class ="row ">
35
- < div class ="col-12 mt-4 pt-2 ">
36
- < div class ="tab-content " id ="pills-tab-{{ $sectionTitle }}Content ">
37
- {{ range $index, $value := .items }}
38
- < div class ="tab-pane fade show{{ if (eq $index 0) }} active{{ end }} " id ="pills-{{ $sectionTitle }}-{{ anchorize .title }} " role ="tabpanel " aria-labelledby ="{{ anchorize .title }}-tab ">
39
- < div class ="row align-items-center ">
40
- < div class ="col-md-12 ">
41
- {{ $title := .title }}
42
- {{ $path := .imagePath | default "images" }}
43
- {{ $imageBefore := .imageBefore }}
44
- {{ $imageAfter := .imageAfter }}
45
- {{ $pathBefore := printf "%s/%s" $path $imageBefore }}
46
- {{ $pathAfter := printf "%s/%s" $path $imageAfter }}
47
- {{ with and $imageBefore $imageAfter }}
48
- < div id ="{{ anchorize $title }}-compare " class ="image-compare rounded-md border ">
49
- {{ with $imageBefore := resources.Get $pathBefore }}
50
- < img src ="{{ .RelPermalink }} " alt ="{{ $imageBefore }} " />
51
- {{ end }}
52
- {{ with $imageAfter := resources.Get $pathAfter }}
53
- < img src ="{{ .RelPermalink }} " alt ="{{ $imageAfter }} " />
54
- {{ end }}
55
- </ div >
56
- {{ end }}
57
- </ div > <!--end col-->
58
- </ div > <!--end row-->
59
- </ div > <!--end teb pane-->
60
- {{ end }}
61
- </ div > <!--end tab content-->
62
- </ div > <!--end col-->
63
- </ div > <!--end row-->
64
- </ div > <!--end container-->
35
+ < div class ="row ">
36
+ < div class ="col-12 mt-4 pt-2 ">
37
+ < div class ="tab-content " id ="pills-tab-{{ $sectionTitle }}Content ">
38
+ {{ range $index, $value := .items }}
39
+ < div class ="tab-pane fade show{{ if (eq $index 0) }} active{{ end }} " id ="pills-{{ $sectionTitle }}-{{ anchorize .title }} " role ="tabpanel " aria-labelledby ="{{ anchorize .title }}-tab ">
40
+ < div class ="row align-items-center ">
41
+ < div class ="col-md-12 ">
42
+ {{ $title := .title }}
43
+ {{ $path := .imagePath | default "images" }}
44
+ {{ $imageBefore := .imageBefore }}
45
+ {{ $imageAfter := .imageAfter }}
46
+ {{ $pathBefore := printf "%s/%s" $path $imageBefore }}
47
+ {{ $pathAfter := printf "%s/%s" $path $imageAfter }}
48
+ {{ with and $imageBefore $imageAfter }}
49
+ < div id ="{{ anchorize $title }}-compare " class ="image-compare rounded-md border ">
50
+ {{ with $imageBefore := resources.Get $pathBefore }}
51
+ < img src ="{{ .RelPermalink }} " alt ="{{ $imageBefore }} " />
52
+ {{ end }}
53
+ {{ with $imageAfter := resources.Get $pathAfter }}
54
+ < img src ="{{ .RelPermalink }} " alt ="{{ $imageAfter }} " />
55
+ {{ end }}
56
+ </ div >
57
+ {{ end }}
58
+ </ div > <!--end col-->
59
+ </ div > <!--end row-->
60
+ </ div > <!--end teb pane-->
61
+ {{ end }}
62
+ </ div > <!--end tab content-->
63
+ </ div > <!--end col-->
64
+ </ div > <!--end row-->
65
+ </ div > <!--end container-->
66
+ </ section >
65
67
{{ end }}
66
68
{{ end }}
0 commit comments