|
@@ -3,13 +3,19 @@
|
|
{{ $sectionID = .section.id }}
|
|
{{ $sectionID = .section.id }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
|
|
+{{ $numShow := 3}}
|
|
|
|
+{{ if .section.numShow }}
|
|
|
|
+ {{ $numShow = .section.numShow }}
|
|
|
|
+{{ end }}
|
|
|
|
+
|
|
|
|
+
|
|
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ $sectionID }}">
|
|
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ $sectionID }}">
|
|
{{ if not (.section.hideTitle) }}
|
|
{{ if not (.section.hideTitle) }}
|
|
<h1 class="text-center">{{ .section.name }}</h1>
|
|
<h1 class="text-center">{{ .section.name }}</h1>
|
|
{{ end }}
|
|
{{ end }}
|
|
<div class="container">
|
|
<div class="container">
|
|
<div class="row" id="recent-post-cards">
|
|
<div class="row" id="recent-post-cards">
|
|
- {{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
|
|
|
|
|
|
+ {{ range first $numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
|
|
{{ partial "cards/recent-post.html" . }}
|
|
{{ partial "cards/recent-post.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|