Modify the shortcode for `strava`.
This commit is contained in:
parent
4fb8586ca6
commit
d42419a1e8
|
@ -1,5 +1,3 @@
|
|||
{{ if and (.Get "id") (.Get "hash") }}
|
||||
<div class="embed">
|
||||
<iframe loading="lazy" height='405' width='590' frameborder='0' allowtransparency='true' scrolling='no' src="https://www.strava.com/activities/{{ .Get "id" }}/embed/{{ .Get "hash" }}"></iframe>
|
||||
</div>
|
||||
{{ if (.Get "id") }}
|
||||
<div class="strava-embed-placeholder" data-embed-type="activity" data-embed-id="{{ .Get "id" }}"></div><script src="https://strava-embeds.com/embed.js"></script>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue