1234567891011121314151617181920 |
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
- {{ partial "helpers/style-bundle.html" . }}
- <!--================= fab-icon =========================-->
- {{/* 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}}
- <link rel="icon" type="image/png" href="{{ $favicon }}" />
- {{end}}
|