Skip to content

Commit

Permalink
Merge pull request #656 from ChanceM/fix/standardize-header-rss-links
Browse files Browse the repository at this point in the history
  • Loading branch information
CGBassPlayer authored Aug 1, 2024
2 parents a7bbdbd + 3e50a50 commit f1405e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion content/show/this-week-in-bitcoin/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ draft = false
categories = ["This Week in Bitcoin"]
show = "this-week-in-bitcoin"
hosts = ["chris"]
rss_feed = "https://serve.podhome.fm/rss/55b53584-4219-4fb0-b916-075ce23f714e"

type = "show"
active = true
Expand Down
6 changes: 2 additions & 4 deletions themes/jb/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@
<a class="dropdown-item" href="{{ site.Params.feed.video_rss }}" class="navbar-item {{ if $active }}active{{ end }}">All Shows Feed - Video</a>
<a class="dropdown-item" href="{{ site.Params.feed.jupiter_station }}" class="navbar-item {{ if $active }}active{{ end }}">Jupiter Station</a>
{{ range .Children }}
{{ if (site.GetPage (string .URL)).Params.rss_feed }}
<a class="dropdown-item" href="{{ (site.GetPage (string .URL)).Params.rss_feed }}" class="navbar-item {{ if $active }}active{{ end }}">{{ .Name }}</a>
{{ else }}
<a class="dropdown-item" href="{{ (site.GetPage (string .URL)).Params.links.shownotes.url }}/rss" class="navbar-item {{ if $active }}active{{ end }}">{{ .Name }}</a>
{{ with $.GetPage ("/subscribe.md" | printf "%s" | printf "%s%s" (site.GetPage (string .URL)).Params.show | printf "%s%s" "/show/") }}
<a class="dropdown-item" href="{{ .Params.rss }}" class="navbar-item {{ if $active }}active{{ end }}">{{ .Parent.Title }}</a>
{{ end }}
{{ end }}
</div>
Expand Down

0 comments on commit f1405e6

Please sign in to comment.