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 Spotify subscribe button #200

Merged
merged 1 commit into from
Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ enable_jumbo = "true"
copyright_notice = "Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"
itunes_subscribe = "http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi"
android_subscribe = "http://subscribeonandroid.com/feeds.podtrac.com/VGAulpN7MY1U"
spotify_subscribe = "https://open.spotify.com/show/..."
google_play_subscribe = "https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps"
stitcher_subscribe = "http://www.stitcher.com/podcast/arrested-devops-2/arrested-devops"
soundcloud_subscribe = "http://feeds.soundcloud.com/users/soundcloud:users:203144248/sounds.rss"
Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/jumbotron.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@


<div class = "row">
{{ if (isset .Site.Params "spotify_subscribe") }}
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.spotify_subscribe}}"><i class="fab fa-spotify"></i>&nbsp;Spotify</a>
</div>
{{ end }}
{{ if (isset .Site.Params "itunes_subscribe") }}
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.itunes_subscribe}}"><i class="fab fa-itunes-note"></i>&nbsp;iTunes</a>
Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ <h3 class="sidebar_headline text-uppercase">Subscribe</h3>
</div>
</div>
<div class="row">
{{ if (isset .Site.Params "spotify_subscribe") }}
<div class = "col-md-12 subscribe_buttons">
<a class="btn btn-default" href="{{ .Site.Params.spotify_subscribe}}"><i class="fab fa-spotify"></i>&nbsp;Spotify</a>
</div>
{{ end }}
{{ if (isset .Site.Params "itunes_subscribe") }}
<div class = "col-md-12 subscribe_buttons">
<a class="btn btn-default" href="{{ .Site.Params.itunes_subscribe}}"><i class="fab fa-itunes-note"></i>&nbsp;iTunes</a>
Expand Down