{{ $columnNamesStr := .Get "columnNames" }} {{ $columnNames := split $columnNamesStr "," }} {{ $columnSourcesStr := .Get "columnSources" }} {{ $columnSources := split $columnSourcesStr "," }} {{ $enableLinksStr := .Get "enableLinks" }} {{ $enableLinks := split $enableLinksStr "," }} {{ $limitTags := .Get "limitTags" }} {{ $children := .Page.Pages }} {{ $from := .Get "from" }} {{ if $from }} {{ $fromPage := .Page.GetPage $from }} {{ $children = $fromPage.Pages }} {{ end }} {{ range $i, $column := $columnNames }} {{ end }} {{ range $i, $child := $children }} {{ $addRow := true }} {{ if $limitTags }} {{ $childTags := $child.Param "tags" }} {{ if in $childTags $limitTags }} {{ $addRow = true }} {{ else }} {{ $addRow = false }} {{ end }} {{ end }} {{ if $addRow }} {{ range $j, $cSource := $columnSources }} {{ if in $enableLinks $cSource }} {{ else }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ $column | safeHTML }}
{{ $child.Param $cSource }}{{ $child.Param $cSource }}