* Update accomplishments.html fix display property when hidden * Update achievements.html fixed display property when hidden * Update education-alt.html fixed display property when hidden * Update education.html fixed display property when hidden * Update experiences.html fixed display property when hidden * Update projects.html fixed display property when hidden * Update recent-posts.html fixed display property when hidden * Update skills.html fixed display property when hidden
27 lines
814 B
HTML
27 lines
814 B
HTML
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
|
{{ if .section.id }}
|
|
{{ $sectionID = .section.id }}
|
|
{{ end }}
|
|
|
|
{{ $numShow := 3}}
|
|
{{ if .section.numShow }}
|
|
{{ $numShow = .section.numShow }}
|
|
{{ end }}
|
|
|
|
|
|
<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 first $numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
|
|
{{ partial "cards/recent-post.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</div>
|