{{ define "main" }} {{ $project_logo := .Page.Params.project_logo }} {{ $funding_bodies := .Page.Params.funding_bodies }} {{ $eclipse_projects := .Page.Params.eclipse_projects }} {{ $homepage := .Page.Params.homepage }} {{ $linkedin := .Page.Params.linkedin }} {{ $twitter := .Page.Params.twitter }} {{ $facebook := .Page.Params.facebook }} {{ $youtube := .Page.Params.youtube }}

{{ .Title }}

{{ .Content }}
{{ if or $homepage $facebook $linkedin $twitter $youtube }} {{ end }} {{ if gt (len $funding_bodies) 0 }}

Funded by

{{ range $funding_bodies }} {{ $id := . }} {{ range first 1 (where $.Site.Data.research.funding_bodies.items "id" $id) }} {{ end }} {{ end }}
{{ end }} {{ if gt (len $eclipse_projects) 0 }}

Eclipse Projects Contributions

{{ range .Params.eclipse_projects }} {{ $id := . }} {{ range first 1 (where $.Site.Data.eclipsefdn_projects "project_id" .) }} {{ end }} {{ end }}
{{ end }}
{{ end }}