24 lines
919 B
HTML
24 lines
919 B
HTML
<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}}
|
|
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
|
{{ end }}
|