{{ $options := .options }} {{ $heading_level := .heading_level }} {{ $layout := .layout }} {{ $project := site.GetPage .project.path }} {{ $group_meta := .group_meta }} {{ $with_more := .with_more }} {{ with $project }}
{{ partial "projects/partials/project/heading.html" (dict "item" $project "level" $heading_level "options" $options ) }} {{ if $group_meta }} {{ if or $options.year $options.categories }}
{{ if and $project.Params.year $options.year }} {{ partial "projects/partials/project/year.html" $project.Params.year }} {{ end }} {{ if $options.categories }} {{ partial "projects/partials/project/categories.html" . }} {{ end }}
{{ end }} {{ end }} {{ if $options.summary }} {{ partial "projects/partials/project/summary.html" . }} {{ end }} {{ if not $group_meta }} {{ if $options.categories }} {{ partial "projects/partials/project/categories.html" . }} {{ end }} {{ end }} {{ if $with_more }} {{ partial "commons/item/more.html" . }} {{ end }}
{{ if not $group_meta }} {{ if and $project.Params.year $options.year }}
{{ partial "projects/partials/project/year.html" $project.Params.year }}
{{ end }} {{ end }}
{{ if $options.image }} {{ partial "projects/partials/project/media.html" (dict "image" $project.Params.image "layout" $layout ) }} {{ end }}
{{ end }}