{{ with .Site.GetPage "section" "/projects" }}

{{ .Title }}

{{ $totalProjects := (len .Pages) }} {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if eq (mod $numberOfProjectsToShow 2) 0 }}
{{ if lt $numberOfProjectsToShow $totalProjects }} {{ end }}
{{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if not .Params.external_link }} {{ end }} {{ end }} {{ partial "top-icon.html" . }}

{{ end }}