mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-07-31 14:12:01 +00:00
Fixed field access
This commit is contained in:
parent
13eaa7ff4e
commit
7b04f59351
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@
|
|||
{{ $items := (where site.RegularPages "Type" "observations").ByDate }}
|
||||
{{ range last 1 $items }}
|
||||
{{ $name := "" }}
|
||||
{{ if (ne .Params.taxon.common_name "") }}
|
||||
{{ $name = .Params.taxon.common_name }}
|
||||
{{ if (ne .Params.taxon.preferred_common_name "") }}
|
||||
{{ $name = .Params.taxon.preferred_common_name }}
|
||||
{{ else }}
|
||||
{{ $name = .Params.taxon.name }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue