{{ partial "helpers/style-bundle.html" . }} {{/* add favicon only if the site author has provided the the favicon */}} {{ if site.Params.logo.favicon }} {{ $favicon := site.Params.logo.favicon }} {{/* resize the favicon. don't resize svg because it is not supported */}} {{ $favicon = resources.Get $favicon }} {{ if and $favicon (ne $favicon.MediaType.SubType "svg") }} {{ $favicon = $favicon.Resize "42x" }} {{ end }} {{ $favicon = $favicon.RelPermalink}} {{end}}