{{ $is_list := .is_list }} {{ $ := .content }} {{ with $.Params.url_preprint }} {{ i18n "btn_preprint" }} {{ end }} {{ with $.Params.url_pdf }} {{ i18n "btn_pdf" }} {{ end }} {{/* TODO: After Hugo v0.30 released, use fileExists function here. */}} {{ $directory := "static/files/citations/" }} {{ $filename := printf "%s.bib" $.File.TranslationBaseName }} {{ if (where (readDir $directory) "Name" $filename) }} {{ end }} {{ with $.Params.url_code }} {{ i18n "btn_code" }} {{ end }} {{ with $.Params.url_dataset }} {{ i18n "btn_dataset" }} {{ end }} {{ with $.Params.url_project }} {{ i18n "btn_project" }} {{ end }} {{ with $.Params.url_poster }} {{ i18n "btn_poster" }} {{ end }} {{ with $.Params.url_slides }} {{ i18n "btn_slides" }} {{ end }} {{ with $.Params.url_video }} {{ i18n "btn_video" }} {{ end }} {{ with $.Params.url_source }} {{ i18n "btn_source" }} {{ end }} {{ range $.Params.url_custom }} {{ .name }} {{ end }}