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.

blog.html 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{ if gt .Site.RegularPages 0}}
  2. {{"<!-- Start Blog Section -->" | safeHTML}}
  3. <section id="blog" class="section">
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-lg-12">
  7. {{"<!-- section title -->" | safeHTML}}
  8. <div class="title text-center wow fadeInDown">
  9. <h2>{{ with i18n "blogTitle" }} {{ index (split . " ") 0 }} {{ end }}<span class="color">
  10. {{ with i18n "blogTitle" }} {{ index (split . " ") 1 }} {{ end }}</span></h2>
  11. <div class="border-meghna"></div>
  12. </div>
  13. </div>
  14. {{"<!-- /section title -->" | safeHTML}}
  15. {{ range first 3 .Site.RegularPages }}
  16. {{"<!-- single blog post -->" | safeHTML}}
  17. <article class="col-lg-4 col-md-6 col-12 clearfix wow fadeInUp" data-wow-duration="500ms">
  18. <div class="post-block">
  19. <div class="media-wrapper">
  20. <img src="{{ .Params.Image | absURL }}" alt="post-image" class="img-fluid">
  21. </div>
  22. <div class="content">
  23. <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
  24. <p>{{ .Summary }}</p>
  25. <a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a>
  26. </div>
  27. </div>
  28. </article>
  29. {{"<!-- /single blog post -->" | safeHTML}}
  30. {{ end }}
  31. <div class="all-post text-center col-lg-12">
  32. <a class="btn btn-main"
  33. href="{{ `blog` | absLangURL }}">{{ i18n "viewAllPost" }}</a>
  34. </div>
  35. </div>
  36. </div>
  37. </section>
  38. {{"<!-- /blog -->" | safeHTML}}
  39. {{ end }}