Skip to content

Commit f2181e9

Browse files
committed
for virtual locations just make a regular link
1 parent 6cc7459 commit f2181e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/maps.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{%- macro mapify(location) -%}
2+
{%- if location.startswith('http') %}
3+
{{location}}
4+
{%- else %}
25
{%- set escaped_location = location|replace(',', '')|replace(' ', '+') %}
36
{{'https://www.google.com/maps/dir/Current+Location/%s'|format(escaped_location)}}
7+
{% endif %}
48
{%- endmacro -%}

0 commit comments

Comments
 (0)