mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 18:21:15 +00:00
Added theme for inaturalist observation showcase
This commit is contained in:
parent
31cbccf845
commit
8982737cbc
3 changed files with 107 additions and 0 deletions
24
layouts/observations/list.html
Normal file
24
layouts/observations/list.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{{ define "main"}}
|
||||
{{ partial "header.html" . }}
|
||||
<main>
|
||||
<style>main { text-align: left; }</style>
|
||||
{{ .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 }}
|
||||
{{ partial "inat.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue