{{ $image_400 := .Fit "400x400" }} {{ $image_600 := .Fit "600x600" }} {{ $image_800 := .Fit "800x800" }} {{ $image_1200 := .Fit "1200x1200" }} {{ $image_1600 := .Fit "1600x1600" }} {{ $image_2400 := .Fit "2400x2400" }} {{/* Try to find a companion pdf file */}} {{ $commonFileName := strings.TrimSuffix (path.Ext .) (path.Base .) }} {{ $pdfFilePath := path.Join (path.Dir .) (printf "%s.pdf" $commonFileName) }} {{ $pdf := $.page.Resources.GetMatch $pdfFilePath }} {{/* File name hint for download link */}} {{ $filename := printf "%s_%s" $page.Params.event $commonFileName }}