Use "*-section class" instead of adding new div

This commit is contained in:
hossainemruz 2020-06-30 21:57:20 +06:00
parent a2c41811ab
commit 8d6cbcca21
13 changed files with 115 additions and 128 deletions

View file

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