We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spotify分享shortcode
`{{- if .IsNamedParams -}}
type(必选项): album,trick,playlist,artist id(必选项):分享链接中获取 height:(非必选) weight:(非必选)
示例: {{< spotify type="artist" id="74ASZWbe4lXaubB36ztrGX" >}}
{{< spotify type="artist" id="74ASZWbe4lXaubB36ztrGX" >}}
The text was updated successfully, but these errors were encountered:
Docs: 增加 spotify shortcode (hugo-fixit/FixIt#450)
1757254
sppported Extended Shortcode - Spotify
Sorry, something went wrong.
678e2c0
Lruihao
No branches or pull requests
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: