-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] add spotify shortcode support #450
Comments
Lruihao
added a commit
to hugo-fixit/docs
that referenced
this issue
Jun 8, 2024
sppported Extended Shortcode - Spotify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature you want 描述你的功能需求
spotify分享shortcode
Useful reference 有价值的参考
`{{- if .IsNamedParams -}}
<iframe src="https://open.spotify.com/embed/{{ .Get "type" }}/{{ .Get "id" }}" width="{{ default "100%" (.Get "width") }}" height="{{ default "380" (.Get "height") }}" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe> {{- else -}} <iframe src="https://open.spotify.com/embed/{{ .Get 0 }}/{{ .Get 1 }}" width="{{ default "100%" (.Get 2) }}" height="{{ default "380" (.Get 3) }}" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe> {{- end -}} `示例:
{{< spotify type="artist" id="74ASZWbe4lXaubB36ztrGX" >}}
The text was updated successfully, but these errors were encountered: