{{ 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 What are you looking for? {{ range first 1 (where $all ".Params.featured" "=" true) }} {{ $link := .Permalink }} {{ if .Params.external_link }} {{ $link = .Params.external_link }} {{ end }} {{ if .Params.preview_image }} {{ partial "preview-image" (dict "context" . "default_file_name" "title.jpg" "preview_file" .Params.title_preview_image) }} {{ end }} {{ .Params.title }} {{ .Description }} {{ time.Format "January 02, 2006" .Date }} · {{ .Params.author }} {{ end }} {{ range first 3 (after 1 (where $all ".Params.featured" "=" true)) }} {{ .Params.title }} {{ time.Format "January 02, 2006" .Date }} · {{ .Params.author }} {{ end }} {{ $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 }}
{{ .Description }}