feat: Add svg favicon

This commit is contained in:
2021-07-01 15:29:20 +02:00
parent 01aafb89a1
commit 84539d10ae
3 changed files with 25 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<body>
{{ partial "header.html" . }}
{{ partial "debug.html" . }}
<main id="content">
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}

View File

@ -1,5 +1,13 @@
{{/* https://github.com/msfjarvis/hugo-social-metadata */}}
{{ if .Site.Params.FaviconEmoji }}
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ .Site.Params.FaviconEmoji }}</text></svg>">
{{ else if .Site.Params.FaviconSVG }}
<link rel="icon" href="data:image/svg+xml;{{ safeURL .Site.Params.FaviconSVG }}">
{{ else if .Site.Params.FaviconFile }}
<link rel="icon" href="{{ .Site.Params.FaviconFile }}">
{{ end }}
<!-- Configure meta and title tags -->
<meta property="og:type" content="website" />
{{ if .Site.Params.TwitterCardType }}