features.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{ if isset .Site.Params "features" }}
  2. {{ if .Site.Params.features.enable }}
  3. {{ if gt (len .Site.Data.features) 0 }}
  4. <section class="bar background-white">
  5. <div class="container">
  6. <div class="heading text-center">
  7. <h2>技術強大快速部屬,遠距行銷AI多語言影片效益大!</h2>
  8. </div>
  9. {{ range $index, $element := sort .Site.Data.features "weight" }}
  10. {{ if eq (mod $index 3) 0 }}
  11. <div class="col-md-12">
  12. <div class="row">
  13. {{ end }}
  14. <div class="col-md-4">
  15. <div class="box-simple">
  16. {{ with $element.url }}
  17. <a href="{{ $element.url }}">
  18. {{ end }}
  19. <div class="icon icon-feature">
  20. <i class="{{ .icon }}"></i>
  21. </div>
  22. {{ with $element.url }}
  23. </a>
  24. {{ end }}
  25. <h3>{{ $element.name | markdownify }}</h3>
  26. <!-- <p>{{ $element.description | markdownify }}</p> -->
  27. </div>
  28. </div>
  29. {{ if or (eq (mod $index 3) 2) (eq $index (sub (len $.Site.Data.features) 1 )) }}
  30. </div>
  31. </div>
  32. {{ end }}
  33. {{ end }}
  34. </div>
  35. </section>
  36. {{ end }}
  37. {{ end }}
  38. {{ end }}