{{ $is_list := .is_list }}
{{ $ := .content }}
{{ with $.Params.url_pdf }}
{{ i18n "btn_pdf" }}
{{ end }}
{{ with $.Params.url_slides }}
{{ i18n "btn_slides" }}
{{ end }}
{{ with $.Params.url_video }}
{{ i18n "btn_video" }}
{{ end }}
{{ with $.Params.url_code }}
{{ i18n "btn_code" }}
{{ end }}
{{ range $.Params.projects }}
{{ with ($.Site.GetPage (printf "project/%s" .)) }}
{{ i18n "btn_project" }}
{{ else }}
{{ errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . }}
{{ end }}
{{ end }}
{{ range $.Params.url_custom }}
{{ .name }}
{{ end }}