new-post.html 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <div class="new-post">
  2. <div class="new-post-content">
  3. {{ range first 5 (where .Site.Pages "Params.type" "headlines") }}
  4. <div class="new-post-content border-top mb-3">
  5. <div class="row pt-3">
  6. <div class="col-lg-4">
  7. <a href="{{ .Permalink }}">
  8. <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
  9. </a>
  10. </div>
  11. <div class="col-lg-8">
  12. <h2 class="post-title mb-3">
  13. <a href="{{ .Params.url }}">{{ .Params.title }}</a>
  14. </h2>
  15. <p class="post-depiction mb-0">
  16. <a href="{{ .Params.url }}" style="color:#000;">{{ .Summary }}</a>
  17. </p>
  18. <section class="news-post mt-3">
  19. {{ range (.GetTerms "categories") }}
  20. <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
  21. {{ end }}
  22. <small>{{ .Date | time.Format ":date_long" }}</small>
  23. </section>
  24. </div>
  25. </div>
  26. </div>
  27. {{end}}
  28. </div>
  29. </div>