|
|
@@ -1,30 +1,32 @@
|
|
|
+{{ with .Params.landing }}
|
|
|
+{{ $landing := . }}
|
|
|
<div class="divider">
|
|
|
<div class="lmr">
|
|
|
<div class="home__landing">
|
|
|
- {{ if $.Param "landingImage" }}
|
|
|
+ {{ if .image }}
|
|
|
<div class="home__landing--img">
|
|
|
- <img src="{{ $.Param "landingImage" | relURL }}" alt="Site Landing Page image">
|
|
|
+ <img src="{{ .image | relURL }}" alt="Site Landing Page image">
|
|
|
</div>
|
|
|
<div class="home__landing--txt">
|
|
|
- {{ if $.Param "landingTitle" }}
|
|
|
- {{ range $.Param "landingTitle" }}
|
|
|
- <div class="title" style="{{ with $.Param "titleColor" }}color:{{ . }}{{ end }};">
|
|
|
- {{ . }}
|
|
|
- </div>
|
|
|
+ {{ if .title }}
|
|
|
+ {{ range .title }}
|
|
|
+ <div class="title" style="{{ with $landing.titleColor }}color:{{ . }}{{ end }};">
|
|
|
+ {{ . }}
|
|
|
+ </div>
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
- {{ if $.Param "spaceBetweenTitleText" }}
|
|
|
- <div style="height: {{ $.Param "spaceBetweenTitleText" }}px"></div>
|
|
|
+ {{ if .spaceBetweenTitleText }}
|
|
|
+ <div style="height: {{ .spaceBetweenTitleText }}px"></div>
|
|
|
{{ end }}
|
|
|
- {{ if $.Param "landingText" }}
|
|
|
- {{ range $.Param "landingText" }}
|
|
|
- <div class="text" style="{{ with $.Param "textColor" }}color:{{ . }}{{ end }};">
|
|
|
+ {{ if .text }}
|
|
|
+ {{ range .text }}
|
|
|
+ <div class="text" style="{{ with $landing.textColor }}color:{{ . }}{{ end }};">
|
|
|
{{ . }}
|
|
|
</div>
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
|
|
|
- {{ range .Params.buttons }}
|
|
|
+ {{ range .buttons }}
|
|
|
<a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
|
|
|
<button class="button home__landing--btn" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
|
|
|
{{ .text }}
|
|
|
@@ -34,26 +36,26 @@
|
|
|
</div>
|
|
|
{{ else }}
|
|
|
<div class="home__landing--txt">
|
|
|
- {{ if $.Param "landingTitle" }}
|
|
|
- {{ range $.Param "landingTitle" }}
|
|
|
- <div class="title" style="{{ with $.Param "titleColor" }}color:{{ . }}{{ end }};">
|
|
|
+ {{ if .title }}
|
|
|
+ {{ range .title }}
|
|
|
+ <div class="title" style="{{ with $landing.titleColor }}color:{{ . }}{{ end }};">
|
|
|
{{ . }}
|
|
|
</div>
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
- {{ if $.Param "spaceBetweenTitleText" }}
|
|
|
- <div style="height: {{ $.Param "spaceBetweenTitleText" }}px"></div>
|
|
|
+ {{ if .spaceBetweenTitleText }}
|
|
|
+ <div style="height: {{ .spaceBetweenTitleText }}px"></div>
|
|
|
{{ end }}
|
|
|
- {{ if $.Param "landingText" }}
|
|
|
- {{ range $.Param "landingText" }}
|
|
|
- <div class="text" style="{{ with $.Param "textColor" }}color:{{ . }}{{ end }};">
|
|
|
+ {{ if .text }}
|
|
|
+ {{ range .text }}
|
|
|
+ <div class="text" style="{{ with $landing.textColor }}color:{{ . }}{{ end }};">
|
|
|
{{ . }}
|
|
|
</div>
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
</div>
|
|
|
<div class="flexcolumn">
|
|
|
- {{ range .Params.buttons }}
|
|
|
+ {{ range .buttons }}
|
|
|
<a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
|
|
|
<button class="button home__landing--btn2" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
|
|
|
{{ .text }}
|
|
|
@@ -64,4 +66,5 @@
|
|
|
{{ end }}
|
|
|
</div>
|
|
|
</div>
|
|
|
-</div>
|
|
|
+</div>
|
|
|
+{{ end }}
|