{{ $obsData := .Scratch.Get "obs" }} {{ $scratchURL := .Scratch.Get "obs_url" }} {{ with $obsData }}
{{ $name := "" }} {{ if (ne .taxon.common_name "") }} {{ $name = .taxon.common_name }} {{ else }} {{ $name = .taxon.name }} {{ end }} {{ $obsURL := .url }} {{ with $scratchURL }} {{ $obsURL = . }} {{ end }}

{{ title $name }}

{{ if (eq .quality_grade "research")}} Research Grade
{{ end }}

Observed on

Location: {{ .place_guess }}

{{ if gt (len .photos) 0 }}
{{ range .photos}} {{ $small_url := replace .url "square" "small"}} {{ $original_url := replace .url "square" "original"}} Photo of {{ .species_guess }} {{ end }}
{{ end }}
| Also on: iNaturalist
{{ end }}