Browse Source

remove excluded sections

master
Alexander Avery 3 months ago
parent
commit
5f1a8dfc93
  1. 1
      layouts/_default/list.html

1
layouts/_default/list.html

@ -5,7 +5,6 @@
{{ .Content }}
<section class="article-list">
{{ $pages := .Pages }}
{{ if .IsHome }}{{ $pages = where .Site.RegularPages "Type" "not in" (default "[]" .Site.Params.excludedSections) }}{{ end }}
{{ range (where $pages "Section" "ne" "") }}
{{ partial "article-card.html" . }}
{{ end }}

Loading…
Cancel
Save