Skip to content
Permalink
Browse files

Videos Navigation (#241)

Videos Navigation
  • Loading branch information...
jaymickey committed May 1, 2019
2 parents a606f61 + 1165bac commit eb5fc0d2670dfeda6940914ab15151093a2d6da2
Showing with 30 additions and 5 deletions.
  1. +4 −4 config.toml
  2. +5 −0 content/videos/_index.md
  3. +5 −1 layouts/partials/base/footer.html
  4. +16 −0 layouts/videos/list.html
@@ -24,13 +24,13 @@ url = "/channels/"
weight = 2

[[ menu.main ]]
name = "Playlists"
url = "/playlists/"
name = "Videos"
url = "/videos/"
weight = 3

[[ menu.main ]]
name = "Blog"
url = "/blog/"
name = "Playlists"
url = "/playlists/"
weight = 4

[[ menu.footer ]]
@@ -0,0 +1,5 @@
---
title: BreadTube.tv
type: "videos"
tags: []
---
@@ -10,5 +10,9 @@ <h2 class="footer-header"> This directory is supported by <a href="/reddit">r/br
</li>
{{- end }}
</ul>
<p><a href="/privacy/">Privacy Policy</a></p>

<ul class="footer-list plain-list">
<li><a href="/blog/">Blog</a></li>
<li><a href="/privacy/">Privacy Policy</a></li>
</ul>
</footer>
@@ -0,0 +1,16 @@
{{ define "main" }}
{{ $videos := $.Site.Data.videos }}
{{ $channels := $.Site.Data.channels }}
<ul class="list plain-list">
{{- range $channelSlug, $channelVideos := $videos -}}
{{- range $videoID, $video := $channelVideos -}}
{{- range $channel := $channels -}}
{{ $channel := . }}
{{ if eq $channel.slug $video.channel }}
{{ partial "videos/card.html" (dict "video" $video "channel" $channel "videoChannel" true "videoIframe" false) }}
{{ end }}
{{- end -}}
{{- end -}}
{{- end -}}
</ul>
{{ end }}

0 comments on commit eb5fc0d

Please sign in to comment.
You can’t perform that action at this time.