diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8426317 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/introduction"] + path = themes/introduction + url = https://github.com/victoriadrake/hugo-theme-introduction.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..76090e3 --- /dev/null +++ b/README.md @@ -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). diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..8811d7b --- /dev/null +++ b/config.toml @@ -0,0 +1,5 @@ +baseURL = "https://example.com/" +languageCode = "en-us" +title = "Hugo Shortcodes to embed SoundCloud" +theme = "introduction" +publishDir = "docs" diff --git a/content/home/index.md b/content/home/index.md new file mode 100644 index 0000000..9106fef --- /dev/null +++ b/content/home/index.md @@ -0,0 +1,21 @@ ++++ +title = "SoundCloud Example" ++++ + +## User widget + +```markdown +{{}} +``` + +{{< soundcloud-user 63874417 >}} + +--- + +## Playlist widget + +```markdown +{{}} +``` + +{{< soundcloud-playlist 193869697 >}} diff --git a/layouts/shortcodes/soundcloud-playlist.html b/layouts/shortcodes/soundcloud-playlist.html new file mode 100644 index 0000000..9df6e84 --- /dev/null +++ b/layouts/shortcodes/soundcloud-playlist.html @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/layouts/shortcodes/soundcloud-user.html b/layouts/shortcodes/soundcloud-user.html new file mode 100644 index 0000000..4a81813 --- /dev/null +++ b/layouts/shortcodes/soundcloud-user.html @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/themes/introduction b/themes/introduction new file mode 160000 index 0000000..7bebd01 --- /dev/null +++ b/themes/introduction @@ -0,0 +1 @@ +Subproject commit 7bebd01f426deed30f6eaeef582bc417ea70191c