Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Commit

Permalink
Magic Sort Order (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkkelly authored and jmickey committed May 31, 2019
1 parent 202e9f8 commit 7b6ca35
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions layouts/partials/channels/row.html
@@ -1,12 +1,12 @@
<ul class="list plain-list">
{{ $jump := .Site.Params.targetBlank | default true }}
{{ $tags := .Params.tags | default .Site.Params.defaultTags }}
{{ range .Pages }}
{{ $channel := .Params.channel }}
{{ range .Site.Data.channels }}
{{ if eq .slug $channel }}
{{ partial "channels/card.html" (dict "channel" . "target_blank" $jump) }}
{{ end }}
{{ end }}
{{ range (shuffle .Pages) }}
{{ $channel := .Params.channel }}
{{ range .Site.Data.channels }}
{{ if eq .slug $channel }}
{{ partial "channels/card.html" (dict "channel" . "target_blank" $jump) }}
{{ end }}
{{ end }}
{{ end }}
</ul>

0 comments on commit 7b6ca35

Please sign in to comment.