{{ define "main" }}
{{ partial "breadcrumbs" . }}

{{ .Params.title | safeHTML }}

{{ .Scratch.Set "variant" "compact" }} {{ partial "contact-section" . }}
{{ $all := ($.Site.GetPage "blog" .Section).Pages.ByPublishDate.Reverse }}

Features and News

{{ $paginator := .Paginate (where $all ".Params.featured" "!=" true) 9 }} {{ range $paginator.Pages}} {{ .Scratch.Set "scope" "list" }} {{ $link := .Permalink }} {{ if .Params.external_link }} {{ $link = .Params.external_link }} {{ end }} {{ if or (not .Params.featured) }} {{ if .Params.preview_image }}
{{ partial "preview-image" (dict "context" . "default_file_name" "preview.jpg" "preview_file" .Params.small_preview_image) }}
{{ end }}

{{ .Params.title }}

{{ .Description }}

By {{ .Params.author }} · {{ time.Format "January 02, 2006" .Date }}
{{ end }} {{ end }}
{{ range (where $all ".Params.featured" "!=" true) }} {{ .Scratch.Set "scope" "list" }} {{ $link := .Permalink }} {{ if .Params.external_link }} {{ $link = .Params.external_link }} {{ end }} {{ if or (not .Params.featured) }} {{ if .Params.preview_image }}
{{ partial "preview-image" (dict "context" . "default_file_name" "preview.jpg" "preview_file" .Params.small_preview_image) }}
{{ end }}

{{ .Params.title }}

{{ .Description }}

By {{ .Params.author }} · {{ time.Format "January 02, 2006" .Date }}
{{ end }} {{ end }}
{{ if gt $paginator.TotalPages 1}} {{ partial "paginator" $paginator }} {{ end }}
{{ end }}