{{ if not .Params.widget.sidebar.position }}

{{ .Params.Title }}

{{ end }} {{ if eq .Params.style "plain" }} {{ partial "widgets/pages-plain" . }} {{ else if eq .Params.style "masonry" }} {{ partial "widgets/pages-masonry" . }} {{ else }} {{ partial "widgets/pages-card" . }} {{ end }} {{ define "partials/widgets/pages-get" }} {{- $section := .Site.GetPage .Params.section }} {{ $pages := $section.Pages }} {{ $count := .Params.count | default 5 }} {{ with $count }} {{ $pages = first $count $pages }} {{ end }} {{ return $pages }} {{ end }} {{ define "partials/widgets/pages-plain" }} {{ $pages := partial "widgets/pages-get" . }} {{ partial "components/summary-list-plain" $pages }}
{{ partial "widgets/pages-readmore" . }}
{{ end }} {{ define "partials/widgets/pages-card" }} {{ $pages := partial "widgets/pages-get" . }}
{{ partial "components/summary-list-card" $pages }}
{{ partial "widgets/pages-readmore" . }}
{{ end }} {{ define "partials/widgets/pages-masonry" }}
{{ partial "widgets/pages-readmore" . }}
{{ $pages := partial "widgets/pages-get" . }} {{ partial "components/summary-list-masonry" $pages }} {{ end }} {{ define "partials/widgets/pages-readmore" }} {{- $section := .Site.GetPage .Params.section }} {{ i18n "readMore" }} {{ end }}