Skip to content

Add and test out a soundcloud shortcode #83

Open
@zo0o0ot

Description

@zo0o0ot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions