Rename working-on.html to featured-posts.html
This commit is contained in:
parent
1eee5974c6
commit
cf2bfa570a
1 changed files with 0 additions and 0 deletions
30
layouts/partials/sections/featured-posts.html
Normal file
30
layouts/partials/sections/featured-posts.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
||||
{{ if .section.id }}
|
||||
{{ $sectionID = .section.id }}
|
||||
{{ end }}
|
||||
|
||||
{{ $numShow := 3}}
|
||||
{{ if .section.numShow }}
|
||||
{{ $numShow = .section.numShow }}
|
||||
{{ end }}
|
||||
|
||||
{{ $posts := .posts}}
|
||||
|
||||
<div class="container-fluid anchor pb-5 recent-posts-section">
|
||||
{{ if not (.section.hideTitle) }}
|
||||
<h1 class="text-center">
|
||||
<span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
|
||||
{{ else }}
|
||||
<h1 class="text-center" style="display: none">
|
||||
<span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
|
||||
{{ end }}
|
||||
<div class="container">
|
||||
<div class="row" id="recent-post-cards">
|
||||
{{ range (where (where site.RegularPages.ByDate.Reverse "Type" "posts" ) "Layout" "!=" "search") }}
|
||||
{{if in $posts (.Title)}}
|
||||
{{ partial "cards/recent-post.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue