{{- define "title" -}} Articles {{- end -}} {{- define "main" -}} {{/* get visible articles */}} {{- $rows := union (where .Pages "Params.show" true) (where .Pages "Params.show" nil) -}}

Articles

    {{- range $rows.ByTitle -}}
  • {{- .Title -}} {{- if .Date -}} - {{- .Date.Format "January 2, 2006" -}} {{- end -}}
  • {{- else -}}
  • No articles.
  • {{- end -}}
{{- end -}}