Browse Source

changed section types allowed

master
Alexander Avery 3 years ago
parent
commit
5616c61cad
  1. 2
      layouts/_default/list.html

2
layouts/_default/list.html

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

Loading…
Cancel
Save