mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-12-27 10:11:33 +00:00
11 lines
No EOL
501 B
HTML
11 lines
No EOL
501 B
HTML
{{ $url := printf "%sdata/hikes/%s" .Site.BaseURL (.Get 0) }}
|
|
{{ $url_state := querify "state" (printf "{\"urls\":[\"%s\"]}" $url) }}
|
|
{{ $iframe_url := printf "https://gpx.studio/?%s&embed&distance" $url_state }}
|
|
{{ $a_url := printf "https://gpx.studio/?%s" $url_state }}
|
|
<iframe {{ printf "src=%q" $iframe_url | safeHTMLAttr }}
|
|
width="100%"
|
|
height="500"
|
|
frameborder="0"
|
|
allowfullscreen>
|
|
<p><a {{ printf "href=%q" $a_url | safeHTMLAttr }}></a></p>
|
|
</iframe> |