-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3ece9ec
Showing
8 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "themes/introduction"] | ||
path = themes/introduction | ||
url = https://github.com/victoriadrake/hugo-theme-introduction.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# hugo-shortcodes-soundcloud | ||
|
||
Hugo shortcodes to embed SoundCloud on your site. | ||
|
||
## Shortcodes | ||
|
||
### User widget | ||
|
||
Copy [soundcloud-user.html](./layouts/shortcodes/soundcloud-user.html) into your `layouts/shortcode/` directory. | ||
|
||
#### Usage | ||
|
||
```markdown | ||
{{< soundcloud-user UserID >}} | ||
``` | ||
|
||
### Playlist widget | ||
|
||
Copy [soundcloud-playlist.html](./layouts/shortcodes/soundcloud-playlist.html) into your `layouts/shortcode/` directory. | ||
|
||
#### Usage | ||
|
||
```markdown | ||
{{< soundcloud-playlist PlaylistID >}} | ||
``` | ||
|
||
## Note | ||
|
||
You can confirm UserID and PlaylistID by [SoundCloud HTTP API](https://developers.soundcloud.com/docs/api/reference). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
baseURL = "https://example.com/" | ||
languageCode = "en-us" | ||
title = "Hugo Shortcodes to embed SoundCloud" | ||
theme = "introduction" | ||
publishDir = "docs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
+++ | ||
title = "SoundCloud Example" | ||
+++ | ||
|
||
## User widget | ||
|
||
```markdown | ||
{{</* soundcloud-user UserID */>}} | ||
``` | ||
|
||
{{< soundcloud-user 63874417 >}} | ||
|
||
--- | ||
|
||
## Playlist widget | ||
|
||
```markdown | ||
{{</* soundcloud-playlist PlaylistID */>}} | ||
``` | ||
|
||
{{< soundcloud-playlist 193869697 >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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/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> |
Submodule introduction
added at
7bebd0