Skip to content
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

Closed
Kindle-deep opened this issue Jun 7, 2024 · 1 comment
Closed

[FEATURE] add spotify shortcode support #450

Kindle-deep opened this issue Jun 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Kindle-deep
Copy link

Kindle-deep commented Jun 7, 2024

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

type(必选项): album,trick,playlist,artist
id(必选项):分享链接中获取
height:(非必选)
weight:(非必选)

示例:
{{< spotify type="artist" id="74ASZWbe4lXaubB36ztrGX" >}}

@Kindle-deep Kindle-deep added the enhancement New feature or request label Jun 7, 2024
@Lruihao Lruihao self-assigned this Jun 7, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Jun 7, 2024
@Lruihao Lruihao changed the title [FEATURE] Some feature [FEATURE] add spotify shortcode support Jun 7, 2024
Lruihao added a commit to hugo-fixit/docs that referenced this issue Jun 8, 2024
@Lruihao
Copy link
Member

Lruihao commented 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
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants