Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

blog.html 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{ if .Site.Data.blog.enable}}
  2. {{"<!-- Start Blog Section -->" | safeHTML}}
  3. {{ $data := index .Site.Data .Site.Language.Lang }}
  4. <section id="blog" class="section">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-lg-12">
  8. {{"<!-- section title -->" | safeHTML}}
  9. <div class="title text-center wow fadeInDown">
  10. <h2> {{ with $data.blog.heading }} {{ . }} {{ end }} <span class="color"> {{ with $data.blog.headingSpan }} {{ . }} {{ end }} </span></h2>
  11. <div class="border-meghna"></div>
  12. </div>
  13. </div>
  14. {{"<!-- /section title -->" | safeHTML}}
  15. {{ range .Data.Pages }}
  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. {{ with .Params.image }}<img src="{{ . | absURL }}" alt="post-image" class="img-fluid">{{ end }}
  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" href="{{ if .Site.GetPage "/blog" }}/blog{{ else }}/posts{{end}}">{{ i18n "viewAllPost" }}</a>
  33. </div>
  34. </div>
  35. </div>
  36. </section>
  37. {{"<!-- /blog -->" | safeHTML}}
  38. {{ end }}