update
This commit is contained in:
parent
187900fd5b
commit
1fd9adcb52
23 changed files with 1800 additions and 98 deletions
14
layouts/partials/util/get_location_by_index.html
Normal file
14
layouts/partials/util/get_location_by_index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{- $locations := .Params.location }}
|
||||
{{- $location := .Params.location }}
|
||||
|
||||
{{- range $k, $v := $locations -}}
|
||||
{{- if ( isset $v "lat" ) -}}
|
||||
{{- partialCached "util/get_location_by_index.html" ( dict "locations" $v "location" $location ) $location -}}
|
||||
{{- else if ( eq $k $location ) -}}
|
||||
{{- with $v -}}
|
||||
{{- return . -}}
|
||||
{{- else -}}
|
||||
{{- warnf "Location %q has no co-ordinates set" $k -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue