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.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{ if .Site.Data.blog.enable}}
  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 .Site.Data.blog.heading }} {{ . }} {{ end }} <span class="color"> {{ with .Site.Data.blog.headingSpan }} {{ . }} {{ end }} </span></h2>
  10. <div class="border-meghna"></div>
  11. </div>
  12. </div>
  13. {{"<!-- /section title -->" | safeHTML}}
  14. {{ range .Data.Pages }}
  15. {{"<!-- single blog post -->" | safeHTML}}
  16. <article class="col-lg-4 col-md-6 col-12 clearfix wow fadeInUp" data-wow-duration="500ms">
  17. <div class="post-block">
  18. <div class="media-wrapper">
  19. {{ with .Params.image }}<img src="{{ . | absURL }}" alt="post-image" class="img-fluid">{{ end }}
  20. </div>
  21. <div class="content">
  22. <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
  23. <p>{{ .Summary }}</p>
  24. <a class="btn btn-transparent" href="{{ .Permalink }}">Read more</a>
  25. </div>
  26. </div>
  27. </article>
  28. {{"<!-- /single blog post -->" | safeHTML}}
  29. {{ end }}
  30. <div class="all-post text-center col-lg-12">
  31. <a class="btn btn-main" href="/blog">View All Post</a>
  32. </div>
  33. </div>
  34. </div>
  35. </section>
  36. {{"<!-- /blog -->" | safeHTML}}
  37. {{ end }}