list.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {{ define "main" }}
  2. {{ partial "page-header.html" . }}
  3. {{ if .Params.service.enable }}
  4. {{ with .Params.service }}
  5. {{ range $i,$p := .service_item }}
  6. {{if modBool $i 2}}
  7. <section class="section">
  8. <div class="container">
  9. <div class="row align-items-center">
  10. <div class="col-md-6 order-2 order-md-1">
  11. <h2 class="section-title">{{ .title | markdownify }}</h2>
  12. <p>{{ .content | markdownify }}</p>
  13. {{ if .button.enable }}
  14. {{ with .button }}
  15. <a href="{{ .link | absURL }}" class="btn-link">{{ .label }} <i class="ti-arrow-right"></i></a>
  16. {{ end }}
  17. {{ end }}
  18. </div>
  19. <div class="col-md-6 order-1 order-md-2 mb-4 mb-md-0">
  20. {{ if .youtube.enable }}
  21. {{ with .youtube }}
  22. <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  23. <iframe src="{{ .link | absURL }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="YouTube Video"></iframe>
  24. </div>
  25. {{ end }}
  26. {{ else }}
  27. <div {{if gt (len .images) 1}}class="slider" {{end}}>
  28. {{ range .images }}
  29. <img src="{{ . | absURL }}" class="img-fluid">
  30. {{ end }}
  31. {{ end }}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </section>
  37. {{ else }}
  38. <!-- service (with background section)-->
  39. <section class="section bg-light">
  40. <div class="container">
  41. <div class="row align-items-center">
  42. <div class="col-md-6 mb-4 mb-md-0">
  43. {{ if .youtube.enable }}
  44. {{ with .youtube }}
  45. <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  46. <iframe src="{{ .link | absURL }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="YouTube Video"></iframe>
  47. </div>
  48. {{ end }}
  49. {{ else }}
  50. <div {{if gt (len .images) 1}}class="slider" {{end}}>
  51. {{ range .images }}
  52. <img src="{{ . | absURL }}" class="img-fluid">
  53. {{ end }}
  54. </div>
  55. {{ end }}
  56. </div>
  57. <div class="col-md-6">
  58. <h2 class="section-title">{{ .title | markdownify }}</h2>
  59. <p>{{ .content | markdownify }}</p>
  60. {{ if .button.enable }}
  61. {{ with .button }}
  62. <a href="{{ .link | absURL }}" class="btn-link">{{ .label }} <i class="ti-arrow-right"></i></a>
  63. {{ end }}
  64. {{ end }}
  65. </div>
  66. </div>
  67. </div>
  68. </section>
  69. {{ end }}
  70. {{ end }}
  71. {{ end }}
  72. {{ end }}
  73. <!-- call to action -->
  74. {{ if .Params.call_to_action.enable }}
  75. {{ with .Params.call_to_action }}
  76. <section class="section">
  77. <div class="container section shadow rounded-lg px-4">
  78. <div class="row align-items-center justify-content-center text-center text-md-left">
  79. <div class="col-lg-4 col-md-5 mb-4 mb-md-0">
  80. <img src="{{ .image | absURL }}" class="img-fluid">
  81. </div>
  82. <div class="col-lg-5 col-md-6">
  83. <h2 class="section-title">{{ .title | markdownify }}</h2>
  84. {{with .content }}<p class="mb-4">{{ . | markdownify }}</p>{{ end }}
  85. {{ if .button.enable }}
  86. {{ with .button }}
  87. <a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a>
  88. {{ end }}
  89. {{ end }}
  90. </div>
  91. </div>
  92. </div>
  93. </section>
  94. {{ end }}
  95. {{ end }}
  96. <!-- /call to action -->
  97. {{ end }}