{{ define "main" }} {{ $lang := .Site.Language.Lang }}

{{ .Title }}

{{ with .Content }}
{{ . }}
{{ end }}
    {{ range $index, $project := hugo.Data.projects }} {{ $url := "" }} {{ with $project.url }} {{ $url = . }} {{ if not (strings.HasPrefix . "http") }} {{ $url = . | relLangURL }} {{ end }} {{ end }} {{ $blurb := "" }} {{ with $project.blurb }} {{ $blurb = or (index . $lang) (index . "en") }} {{ end }}
  1. {{ with $url }}

    {{ $project.name }}

    {{ else }}

    {{ $project.name }}

    {{ end }} {{ with $blurb }}

    {{ . }}

    {{ end }} {{ with $project.links }} {{ end }}
    {{ with $project.tags }} {{ end }} {{ with $url }} {{ end }}
  2. {{ end }}
{{ end }}