{{ $author:= site.Data.author }} {{ if (index site.Data site.Language.Lang).author }} {{ $author = (index site.Data site.Language.Lang).author }} {{ end }} {{ $sections:= site.Data.sections }} {{ if (index site.Data site.Language.Lang).sections }} {{ $sections = (index site.Data site.Language.Lang).sections }} {{ end }} {{ $copyrightNotice := "© 2020 Copyright."}} {{ if (index site.Data site.Language.Lang).site }} {{ $siteConfig := (index site.Data site.Language.Lang).site }} {{ if $siteConfig.copyright }} {{ $copyrightNotice = $siteConfig.copyright }} {{ end }} {{ end }} {{/* footer logos */}} {{ $themeLogo := "/images/theme-logo.png" }} {{ $hugoLogo := "/images/hugo-logo.svg" }} {{/* resize the logos. don't resize svg because it is not supported */}} {{ $themeLogo:= resources.Get $themeLogo}} {{ if and $themeLogo (ne $themeLogo.MediaType.SubType "svg") }} {{ $themeLogo = $themeLogo.Resize "32x" }} {{ end }} {{ $themeLogo = $themeLogo.RelPermalink}} {{ $hugoLogo:= resources.Get $hugoLogo}} {{ if and $hugoLogo (ne $hugoLogo.MediaType.SubType "svg")}} {{ $hugoLogo = $hugoLogo.Resize "32x" }} {{ end }} {{ $hugoLogo = $hugoLogo.RelPermalink}}