home-landing.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div class="divider">
  2. <div class="lmr">
  3. <div class="home__landing">
  4. {{ if $.Param "landingImage" }}
  5. <div class="home__landing--img">
  6. <img src="{{ $.Param "landingImage" | relURL }}" alt="Site Landing Page image">
  7. </div>
  8. <div class="home__landing--txt">
  9. {{ if $.Param "landingTitle" }}
  10. {{ range $.Param "landingTitle" }}
  11. <div class="title" style="{{ with $.Param "titleColor" }}color:{{ . }}{{ end }};">
  12. {{ . }}
  13. </div>
  14. {{ end }}
  15. {{ end }}
  16. {{ if $.Param "spaceBetweenTitleText" }}
  17. <div style="height: {{ $.Param "spaceBetweenTitleText" }}px"></div>
  18. {{ end }}
  19. {{ if $.Param "landingText" }}
  20. {{ range $.Param "landingText" }}
  21. <div class="text" style="{{ with $.Param "textColor" }}color:{{ . }}{{ end }};">
  22. {{ . }}
  23. </div>
  24. {{ end }}
  25. {{ end }}
  26. {{ range .Params.buttons }}
  27. <a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
  28. <button class="button home__landing--btn" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
  29. {{ .text }}
  30. </button>
  31. </a>
  32. {{ end }}
  33. </div>
  34. {{ else }}
  35. <div class="home__landing--txt">
  36. {{ if $.Param "landingTitle" }}
  37. {{ range $.Param "landingTitle" }}
  38. <div class="title" style="{{ with $.Param "titleColor" }}color:{{ . }}{{ end }};">
  39. {{ . }}
  40. </div>
  41. {{ end }}
  42. {{ end }}
  43. {{ if $.Param "spaceBetweenTitleText" }}
  44. <div style="height: {{ $.Param "spaceBetweenTitleText" }}px"></div>
  45. {{ end }}
  46. {{ if $.Param "landingText" }}
  47. {{ range $.Param "landingText" }}
  48. <div class="text" style="{{ with $.Param "textColor" }}color:{{ . }}{{ end }};">
  49. {{ . }}
  50. </div>
  51. {{ end }}
  52. {{ end }}
  53. </div>
  54. <div class="flexcolumn">
  55. {{ range .Params.buttons }}
  56. <a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
  57. <button class="button home__landing--btn2" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
  58. {{ .text }}
  59. </button>
  60. </a>
  61. {{ end }}
  62. </div>
  63. {{ end }}
  64. </div>
  65. </div>
  66. </div>