Skip to content
Permalink
Browse files

Fixed Channel Search

  • Loading branch information...
dirkkelly committed Sep 9, 2019
1 parent f977fda commit 4f2e1fa3b2dfa482c2557daf7340b474da4093c8
Showing with 3 additions and 21 deletions.
  1. +0 −19 layouts/channel/list.html
  2. +2 −1 layouts/partials/channels/row.html
  3. +1 −1 layouts/partials/search/code.html

This file was deleted.

@@ -1,9 +1,10 @@

<ul class="list plain-list">
{{ $tags := .Params.tags | default .Site.Params.defaultTags }}
{{ $channels := where $.Site.Pages "Type" "channel" }}
{{ $tagged := where $.Site.Pages ".Params.tags" "intersect" $tags }}
{{ $filtered := $channels | intersect $tagged }}
{{ range (shuffle ($tagged)) }}
{{ range (shuffle ($filtered)) }}
{{ partial "channels/card.html" . }}
{{ end }}
</ul>
@@ -1,6 +1,6 @@
<script>
var list = [
{{ range .Pages }}
{{ range where $.Site.Pages "Type" "channel" }}
{
'name': "{{ .Title }}",
'slug': "{{ .Params.channel }}",

0 comments on commit 4f2e1fa

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