index.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. {{ define "main" }}
  2. <!-- banner 第一塊-->
  3. {{ with .Params.banner }}
  4. <section class="banner">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-lg-10 mx-auto text-center">
  8. <h1 class="mb-3">{{ .title | markdownify }}</h1>
  9. <p class="mb-4 banner__p">{{ .content | markdownify }}</p>
  10. {{ if .button.enable }}
  11. {{ with .button }}
  12. <div><a href="{{ .link | safeURL }}" class="btn btn-primary">{{ .label }}</a></div>
  13. {{ end }}
  14. {{ end }}
  15. <!-- {{with .image}}<img src="{{ . | absURL }}" class="img-fluid mt-5" width="750px">{{end}} -->
  16. </div>
  17. </div>
  18. </div>
  19. </section>
  20. {{ end }}
  21. <!-- /banner -->
  22. <!-- feature (section of background light) 主要服務-->
  23. {{ if .Params.feature.enable }}
  24. {{ with .Params.feature }}
  25. <section class="section bg-light">
  26. <div class="container">
  27. <div class="row justify-content-center">
  28. <div class="col-12 text-center">
  29. <h2 class="section-title">{{ .title | markdownify }}</h2>
  30. </div>
  31. {{ range .feature_item }}
  32. <div class="col-md-4 col-sm-6 mb-4">
  33. <div class="feature-card text-center">
  34. <i class="{{.icon}} mb-3"></i>
  35. <h4 class="mb-2">{{ .name | title }}</h4>
  36. <p>{{ .content | markdownify }}</p>
  37. </div>
  38. </div>
  39. {{ end }}
  40. </div>
  41. </div>
  42. </section>
  43. {{ end }}
  44. {{ end }}
  45. <!-- /feature -->
  46. <!-- service (without background section)-->
  47. {{ if .Params.service.enable }}
  48. {{ with .Params.service }}
  49. {{ range $i,$p := .service_item }}
  50. {{if modBool $i 2}}
  51. <section class="section">
  52. <div class="container">
  53. <div class="row align-items-center">
  54. <div class="col-md-6 order-2 order-md-1">
  55. <h2 class="section-title">{{ .title | markdownify }}</h2>
  56. <p>{{ .content | markdownify }}</p>
  57. {{ if .button.enable }}
  58. {{ with .button }}
  59. <a href="{{ .link | absURL }}" class="btn-link">{{ .label }} <i class="ti-arrow-right"></i></a>
  60. {{ end }}
  61. {{ end }}
  62. </div>
  63. <div class="col-md-6 order-1 order-md-2 mb-4 mb-md-0">
  64. {{ if .youtube.enable }}
  65. {{ with .youtube }}
  66. <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  67. <iframe src="{{ .link | absURL }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="YouTube Video"></iframe>
  68. </div>
  69. {{ end }}
  70. {{ else }}
  71. <div {{if gt (len .images) 1}}class="slider" {{end}}>
  72. {{ range .images }}
  73. <img src="{{ . | absURL }}" class="img-fluid">
  74. {{ end }}
  75. {{ end }}
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </section>
  81. {{ else }}
  82. <!-- service (with background section)-->
  83. <section class="section bg-light">
  84. <div class="container">
  85. <div class="row align-items-center">
  86. <div class="col-md-6 mb-4 mb-md-0">
  87. {{ if .youtube.enable }}
  88. {{ with .youtube }}
  89. <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  90. <iframe src="{{ .link | absURL }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="YouTube Video"></iframe>
  91. </div>
  92. {{ end }}
  93. {{ else }}
  94. <div {{if gt (len .images) 1}}class="slider" {{end}}>
  95. {{ range .images }}
  96. <img src="{{ . | absURL }}" class="img-fluid">
  97. {{ end }}
  98. </div>
  99. {{ end }}
  100. </div>
  101. <div class="col-md-6">
  102. <h2 class="section-title">{{ .title | markdownify }}</h2>
  103. <p>{{ .content | markdownify }}</p>
  104. {{ if .button.enable }}
  105. {{ with .button }}
  106. <a href="{{ .link | absURL }}" class="btn-link">{{ .label }} <i class="ti-arrow-right"></i></a>
  107. {{ end }}
  108. {{ end }}
  109. </div>
  110. </div>
  111. </div>
  112. </section>
  113. {{ end }}
  114. {{ end }}
  115. {{ end }}
  116. {{ end }}
  117. <!-- /service -->
  118. <!-- screenshot 廣告數據動量行銷-->
  119. {{ if site.Data.homepage.screenshot.enable }}
  120. {{ with site.Data.homepage.screenshot }}
  121. <section class="section pb-0">
  122. <div class="container">
  123. <div class="row">
  124. <div class="col-lg-8 mx-auto text-center">
  125. <h2 class="section-title">{{ .title | markdownify }}</h2>
  126. </div>
  127. </div>
  128. <div class="mx-auto text-center mb-5">
  129. {{ with .image }} <img src="{{ . | absURL }}" class="mb-4 img-fluid">{{ end }}
  130. {{ if .button.enable }}
  131. {{ with .button }}
  132. <div>
  133. <a href="{{ .link | absURL }}" class="btn btn-primary btn-sm font-weight-bold">{{ .label }}</a>
  134. </div>
  135. {{ end }}
  136. {{ end }}
  137. </div>
  138. </div>
  139. </section>
  140. {{ end }}
  141. {{ end }}
  142. <!-- /screenshot -->
  143. <!-- call to action 無用-->
  144. {{ if .Params.call_to_action.enable }}
  145. {{ with .Params.call_to_action }}
  146. <section class="section">
  147. <div class="container section shadow_action rounded-lg px-4">
  148. <div class="row align-items-center justify-content-center text-center text-md-left">
  149. <div class="col-lg-4 col-md-5 mb-4 mb-md-0">
  150. <img src="{{ .image | absURL }}" class="img-fluid">
  151. </div>
  152. <div class="col-lg-5 col-md-6">
  153. <h2 class="section-title">{{ .title | markdownify }}</h2>
  154. {{with .content }}<p class="mb-4">{{ . | markdownify }}</p>{{ end }}
  155. {{ if .button.enable }}
  156. {{ with .button }}
  157. <a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a>
  158. {{ end }}
  159. {{ end }}
  160. </div>
  161. </div>
  162. </div>
  163. </section>
  164. {{ end }}
  165. {{ end }}
  166. <!-- /call to action -->
  167. {{ end }}