{{- if eq .Type "posts" -}} {{- partial "article-list/type/posts" . }} {{- else -}} {{- partial "article-list/type/status" . }} {{- end -}}