{{- $author := .Get "author" -}} {{- $excludeHeadlines := .Get "excludeHeadlines" -}} {{- $pages := .Site.RegularPages -}} {{- $blogPages := where $pages "Section" "blog" -}} {{- $arts := slice -}} {{- range $blogPages -}} {{- $page := . -}} {{- if in .Params.authors $author | and (not (.Params.headline)) -}} {{- $arts = $arts | append $page -}} {{- end -}} {{- end -}}
{{- $arts := $arts | first 3 -}} {{- range $arts -}}
{{- $img := .Resources.GetMatch "*featured*" -}} {{- $permalink := .RelPermalink -}} {{- with $img -}} {{- $small := .Resize "300x" -}}
{{ $img.Title }}
{{- end -}}
{{.Title}}
    {{- range .Params.categories -}}
  • {{. }}
  • {{- end -}}
{{- end -}}