Add shortcode for `strava`

This commit is contained in:
Kazuhiro MUSASHI 2021-08-07 21:18:44 +09:00
parent 54907fa307
commit 79541a9600
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{{ 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>
{{ end }}