You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

feature.html 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{ $data := index site.Data site.Language.Lang }}
  2. {{ if $data.feature.feature.enable }}
  3. {{ with $data.feature.feature }}
  4. {{"<!-- feature -->" | safeHTML}}
  5. <section class="section section-bg about-2 padding-0" id="feature">
  6. <div class="container-fluid">
  7. <div class="row">
  8. <div class="col-lg-6 padding-0" style="background-image: url('{{ .image_webp | absURL }}'); background-size: cover; background-position: top center; background-repeat: no-repeat; min-height: 400px;">
  9. <!-- this image is for trigger this section fallback background image -->
  10. <img src="{{ .image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .image | absURL }})'">
  11. </div>
  12. <div class="col-lg-6">
  13. <div class="content-block">
  14. <h2>{{ .title | markdownify }}</h2>
  15. <p>{{ .content | markdownify }}</p>
  16. <div class="row">
  17. {{ range .feature_item }}
  18. <div class="col-lg-6">
  19. <div class="media">
  20. {{with .icon}}
  21. <div class="align-self-start mr-3">
  22. <i class="{{ . }}"></i>
  23. </div>
  24. {{ end }}
  25. <div class="media-body">
  26. <h4 class="media-heading">{{ .title | markdownify }}</h4>
  27. <p>{{ .content | markdownify }}</p>
  28. </div>
  29. </div>
  30. </div>
  31. {{ end }}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </section>
  38. {{"<!-- /feature -->" | safeHTML}}
  39. {{ end }}
  40. {{ end }}