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

Add and test out a soundcloud shortcode #83

Open
zo0o0ot opened this issue Dec 18, 2023 · 1 comment
Open

Add and test out a soundcloud shortcode #83

zo0o0ot opened this issue Dec 18, 2023 · 1 comment

Comments

@zo0o0ot
Copy link
Contributor

zo0o0ot commented Dec 18, 2023

https://mrcupp.com/post/2023-09-27-shortcode-soundcloud/

image

You will need to create a shortcode file in the proper location: layouts/shortcodes/soundcloud.html

<div class="embed soundcloud-player">
    <iframe width="100%" height="450" scrolling="no" frameborder="no" allow="autoplay" 
    src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/{{ index .Params 0 }}&color=%23c9622e&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe>
</div>

To use this in your markdown for the page you will need to do the following:

{{< soundcloud 1342914016 >}}

@zo0o0ot
Copy link
Contributor Author

zo0o0ot commented Dec 18, 2023

Test that this shortcode works, and if it does, add it to the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant