add start and end date for bod members

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1690132257852795115/master
Toshaan Bharvani 2 years ago
parent d51ad714df
commit 41bd304ead

@ -5,6 +5,9 @@
<div class="row"> <div class="row">
<h1 class="section-header my-3 my-md-5 pb-2 pb-md-3 text-center">{{ .Title }}</h1> <h1 class="section-header my-3 my-md-5 pb-2 pb-md-3 text-center">{{ .Title }}</h1>
{{ range .Data.Pages.ByWeight }} {{ range .Data.Pages.ByWeight }}
{{ $start := time (.Param "start") }}
{{ $end := time (.Param "end") }}
{{ if and (le now $end) (ge now $start) }}
{{ $personfilename := .File.BaseFileName }} {{ $personfilename := .File.BaseFileName }}
{{ $personfile := printf "%s/%s" "persons" $personfilename }} {{ $personfile := printf "%s/%s" "persons" $personfilename }}
<article class="post__article col-10 offset-1 row mb-4 pt-4"> <article class="post__article col-10 offset-1 row mb-4 pt-4">
@ -33,6 +36,7 @@
</div> </div>
</article> </article>
{{ end }} {{ end }}
{{ end }}
</div> </div>
</div> </div>
</main> </main>

Loading…
Cancel
Save