2022-10-08 23:33:41 -04:00
|
|
|
{{ define "main"}}
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
<main>
|
|
|
|
<style>main { text-align: left; }</style>
|
2023-08-14 21:50:13 -04:00
|
|
|
{{ $posts := where site.RegularPages "Type" "observations" }}
|
|
|
|
{{ $postCount := len $posts }}
|
|
|
|
{{ range last 1 $posts }}
|
|
|
|
{{ $scratch := newScratch }}
|
|
|
|
{{ $scratch.Set "researchGradeCount" 0 }}
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ if (eq .quality_grade "research")}}
|
|
|
|
{{ $scratch.Add "researchGradeCount" 1 }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $tags := .Site.Taxonomies.tags }}
|
|
|
|
<div style="text-align: center; margin-bottom: 2rem;" class='bloglist-teaser block-center'>
|
|
|
|
Hello! This page contains {{ $postCount | lang.NumFmt 0 }} observations,
|
|
|
|
{{ len $tags }} of which are <strong><a href="https://www.inaturalist.org/posts/39072-research-grade">research grade</a></strong>.
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-10-08 23:33:41 -04:00
|
|
|
{{ .Content }}
|
|
|
|
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
|
|
|
|
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ $dataJ := dict "created_at" .Date
|
|
|
|
"url" .Params.syndication
|
|
|
|
"quality_grade" .Params.quality_grade
|
|
|
|
"place_guess" .Params.place_guess
|
|
|
|
"photos" .Params.photos
|
|
|
|
"taxon" .Params.taxon
|
|
|
|
}}
|
|
|
|
|
|
|
|
{{ .Scratch.Set "obs" $dataJ }}
|
|
|
|
{{ .Scratch.Set "obs_url" .Permalink }}
|
2023-01-05 00:35:01 -05:00
|
|
|
{{ partial "external/inat.html" . }}
|
2022-10-08 23:33:41 -04:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ end }}
|