mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
✨ Feat: add spotify shortcode support (resolve #450)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{{- $type := cond .IsNamedParams (.Get "type") (.Get 0) -}}
|
||||
{{- $id := cond .IsNamedParams (.Get "id") (.Get 1) -}}
|
||||
{{- $width := cond .IsNamedParams (.Get "width") (.Get 2) -}}
|
||||
{{- $height := cond .IsNamedParams (.Get "height") (.Get 3) -}}
|
||||
<iframe src="https://open.spotify.com/embed/{{ $type }}/{{ $id }}" width="{{ default "100%" $width }}" height="{{ default "380" $height }}" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
|
||||
{{- /* EOF */ -}}
|
||||
Reference in New Issue
Block a user