rename .html.tmpl
files to .html
This commit is contained in:
parent
438fdbe22d
commit
37da8acf5a
27 changed files with 29 additions and 29 deletions
18
layouts/partials/util/get_location_leaf_nodes.html
Normal file
18
layouts/partials/util/get_location_leaf_nodes.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!--
|
||||
Returns all locations from `data/locations.json`.
|
||||
|
||||
@params locations dict<dict>
|
||||
@returns dict<dict>
|
||||
-->
|
||||
|
||||
{{- $locations := ( dict ) -}}
|
||||
|
||||
{{- range $k, $v := . -}}
|
||||
{{- if ( isset $v "lat" ) -}}
|
||||
{{- $locations = merge $locations ( dict $k $v ) -}}
|
||||
{{- else -}}
|
||||
{{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html" . ) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- return $locations -}}
|
Loading…
Add table
Add a link
Reference in a new issue