Update theme
This commit is contained in:
parent
32fdb6fe88
commit
2a96fe8b32
5 changed files with 21 additions and 18 deletions
|
@ -22,16 +22,17 @@
|
|||
{{ 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 }}
|
||||
{{/* 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}}
|
||||
|
||||
{{/* 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}}
|
||||
<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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue