recent-posts.html 469 B

123456789101112
  1. <div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
  2. <div id="recent-posts-template">
  3. <h1 class="text-center">{{ .section.name }}</h1>
  4. <div class="container">
  5. <div class="row" id="recent-post-cards">
  6. {{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
  7. {{ partial "cards/recent-post.html" . }}
  8. {{ end }}
  9. </div>
  10. </div>
  11. </div>
  12. </div>