Modify the shortcode for `strava`.

This commit is contained in:
Kazuhiro MUSASHI 2022-11-26 21:22:41 +09:00
parent 4fb8586ca6
commit d42419a1e8
1 changed files with 2 additions and 4 deletions

View File

@ -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 }}