Skip to content

Commit

Permalink
Add example image
Browse files Browse the repository at this point in the history
  • Loading branch information
yuma-m committed Feb 1, 2021
1 parent 3ece9ec commit 85fb612
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Copy [soundcloud-user.html](./layouts/shortcodes/soundcloud-user.html) into your
{{< soundcloud-user UserID >}}
```

#### Example

![Soundcloud user](./images/soundcloud-user.png)

### Playlist widget

Copy [soundcloud-playlist.html](./layouts/shortcodes/soundcloud-playlist.html) into your `layouts/shortcode/` directory.
Expand All @@ -24,6 +28,10 @@ Copy [soundcloud-playlist.html](./layouts/shortcodes/soundcloud-playlist.html) i
{{< soundcloud-playlist PlaylistID >}}
```

## Note
#### Example

![Soundcloud playlist](./images/soundcloud-playlist.png)

## Notes

You can confirm UserID and PlaylistID by [SoundCloud HTTP API](https://developers.soundcloud.com/docs/api/reference).
You can confirm `UserID` and `PlaylistID` by [SoundCloud HTTP API](https://developers.soundcloud.com/docs/api/reference).
Binary file added images/soundcloud-playlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/soundcloud-user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions layouts/shortcodes/soundcloud-playlist.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<iframe
width="100%"
height="300"
scrolling="no"
frameborder="no"
allow="autoplay"
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/{{ index .Params 0 }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true">
</iframe>
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=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true">
</iframe>
14 changes: 7 additions & 7 deletions layouts/shortcodes/soundcloud-user.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<iframe
width="100%"
height="300"
scrolling="no"
frameborder="no"
<iframe
width="100%"
height="450"
scrolling="no"
frameborder="no"
allow="autoplay"
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/users/{{ index .Params 0 }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true">
</iframe>
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/users/{{ index .Params 0 }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true">
</iframe>

0 comments on commit 85fb612

Please sign in to comment.