recent-posts.html 480 B

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