dd vendored icons for the tour-map
All checks were successful
/ build (pull_request) Successful in 25s
All checks were successful
/ build (pull_request) Successful in 25s
This commit is contained in:
parent
14aed5e649
commit
2c28c050a5
933 changed files with 9891 additions and 22 deletions
|
|
@ -31,13 +31,18 @@ or {{< tour-map 39c3 >}}.
|
|||
{{- $directions = $.Page.RenderString (dict "display" "block") . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $icon := "" -}}
|
||||
{{- with $tour.icon -}}
|
||||
{{- $icon = partial "tour-map-icon.html" . -}}
|
||||
{{- if not $icon }}{{ warnf "tour-map: %s: unknown icon %q for tour %q" $event . $slug }}{{ end -}}
|
||||
{{- end -}}
|
||||
{{- $tours = $tours | append (dict
|
||||
"title" $title
|
||||
"url" $url
|
||||
"lat" .lat
|
||||
"lon" .lon
|
||||
"color" ($tour.color | default "")
|
||||
"icon" ($tour.icon | default "")
|
||||
"icon" $icon
|
||||
"directions" $directions
|
||||
"route" ($tour.route | default slice)
|
||||
) -}}
|
||||
|
|
@ -48,7 +53,12 @@ or {{< tour-map 39c3 >}}.
|
|||
{{- with $data.map }}{{ with .origin }}{{ with .geo -}}
|
||||
{{- $name := "" -}}
|
||||
{{- with $data.map.origin.name }}{{ $name = index . $lang | default (index . $other) }}{{ end -}}
|
||||
{{- $origin = dict "name" $name "lat" .lat "lon" .lon "icon" ($data.map.origin.icon | default "") -}}
|
||||
{{- $icon := "" -}}
|
||||
{{- with $data.map.origin.icon -}}
|
||||
{{- $icon = partial "tour-map-icon.html" . -}}
|
||||
{{- if not $icon }}{{ warnf "tour-map: %s: unknown icon %q for the origin" $event . }}{{ end -}}
|
||||
{{- end -}}
|
||||
{{- $origin = dict "name" $name "lat" .lat "lon" .lon "icon" $icon -}}
|
||||
{{- end }}{{ end }}{{ end -}}
|
||||
|
||||
{{- if not $tours -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue