Merge pull request #16 from mesmur/feat/set-favicon-path
feat(partials): allow setting of favicon path
This commit is contained in:
commit
561fc71c3c
@ -1,8 +1,18 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
|
||||
{{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }}
|
||||
|
||||
<link rel="icon" type="image/ico" href="{{ $faviconPath }}/favicon.ico">
|
||||
<link rel="icon" type="image/ico" href="{{ $faviconPath }}/favicon.ico">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ $faviconPath }}/favicon-16x16.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ $faviconPath }}/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ $faviconPath }}/android-chrome-192x192.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ $faviconPath }}/apple-touch-icon.png">
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
{{ printf `
|
||||
<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
{{- if .IsHome -}}
|
||||
|
Loading…
Reference in New Issue
Block a user