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

Videos Navigation #241

Merged
merged 1 commit into from May 1, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -19,13 +19,13 @@ url = "/channels/"
weight = 2

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

[[ menu.main ]]
name = "Blog"

This comment has been minimized.

Copy link
@ozzyaaron

ozzyaaron Apr 30, 2019

Going to keep the blog dirs and data around for later?

This comment has been minimized.

Copy link
@dirkkelly

dirkkelly May 1, 2019

Author Member

Yeah still gonna use them, they’re just linked in the footer instead

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 }}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.