{{ define "main" }}
{{ $pages := .Pages }}
{{ with site.Params.language_alternatives }}
{{ range . }}
{{ with (where $.Translations ".Lang" . ) }}
{{ $p := index . 0 }}
{{ $pages = $pages | lang.Merge $p.Pages }}
{{ end }}
{{ end }}
{{ end }}
{{ $featured := (where $pages "Params.featured" true).ByWeight | first 4 }}
"{{ .Params.quote | html }}"
{{ $img := .Resources.GetMatch "video.png" }}
{{ $small := .Resources.GetMatch "**small*.svg" }}
{{ with $small }}{{ end }}
{{ .Title }}
{{ else }}
{{ errorf "Case Studies: Missing logo for %s. Put a PNG or SVG with the word 'logo' in the filename into %q" $p.LinkTitle $p.File.Dir }}
{{ end }}
{{ end }}
"{{ .page.Params.quote | html }}"
{{ T "main_read_about"}} {{ .page.LinkTitle }}