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

{{ .Title }}

{{ $totalProjects := (len .Pages) }} {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if .Site.Params.projects.useTwoColumns }} {{ .Scratch.Set "width" "490x" }}
{{ if lt $numberOfProjectsToShow $totalProjects }} {{ end }}
{{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if not .Params.external_link }} {{ end }} {{ end }} {{ partial "top-icon.html" . }}

{{ end }}