Skip to content

Commit

Permalink
Add flex utility to subscribe buttons (#133)
Browse files Browse the repository at this point in the history
There appears to be a bug in safari with wrapping columns like this. This is a workaround.
  • Loading branch information
mattstratton authored Jun 14, 2017
1 parent 5f60d57 commit 05f1828
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
bio = ""
[params.authors.Trevor.social]
twitter = "trevorghess"
[params.authors.Bridget]
name = "Bridget Kromhout"
thumbnail = "https://www.arresteddevops.com/img/Bridget.png"
bio = ""
[params.authors.Bridget.social]
twitter = "bridgetkromhout"

[params.links]
[params.links.ado]
Expand Down
16 changes: 8 additions & 8 deletions layouts/partials/jumbotron.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,41 @@

<div class = "row">
{{ if (isset .Site.Params "itunes_subscribe") }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.itunes_subscribe}}"><i class="fa fa-apple"></i>&nbsp;iTunes</a>
</div>
{{ end }}
{{ if (isset .Site.Params "android_subscribe") }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default subscribe_buttons" href="{{ .Site.Params.android_subscribe }}"><i class="fa fa-android"></i>&nbsp;Android</a>
</div>
{{ end }}
{{ if (isset .Site.Params "google_play_subscribe") }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.google_play_subscribe }}"><i class="fa fa-music"></i>&nbsp;Google Play Music</a>
</div>
{{ end }}
{{ with .Site.Params.sticher_subscribe }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ . }}"><i class="fa fa-podcast"></i>&nbsp;Stitcher</a>
</div>
{{ end }}
{{ if (isset .Site.Params "soundcloud_subscribe") }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.soundcloud_subscribe }}"><i class="fa fa-soundcloud"></i>&nbsp;Soundcloud</a>
</div>
{{ end }}
{{ if (isset .Site.Params "pocketcasts_subscribe") }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.pocketcasts_subscribe }}"><i class="fa fa-podcast"></i>&nbsp;PocketCasts</a>
</div>
{{ end }}
{{ if (isset .Site.Params "rss_subscribe" )}}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{ .Site.Params.rss_subscribe }}"><i class="fa fa-rss"></i>&nbsp;RSS</a>
</div>
{{ else }}
<div class = "col subscribe_buttons col-md-auto">
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{"episode/index.xml" | absURL }}"><i class="fa fa-rss"></i>&nbsp;RSS</a>
</div>
{{ end }}
Expand Down

0 comments on commit 05f1828

Please sign in to comment.