fix: favicon markup (#2115)

This commit is contained in:
Salim B 2024-10-29 19:35:03 +01:00 committed by GitHub
parent be9fe9c7a2
commit 599147c102
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@
<link href="{{ .Site.BaseURL }}static/style.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<link rel="shortcut icon" href="{{ .Site.BaseURL }}static/images/favicon.png" type="image/x-icon" />
<link rel="icon" href="{{ .Site.BaseURL }}static/images/favicon.png" type="image/png" />
<meta property="og:title" content="{{ .Title }}" />
{{ if .Params.thumbnail }}
@ -39,4 +39,4 @@
</nav>
</div>
</header>
</div>
</div>

View file

@ -17,9 +17,9 @@
<script src="/public/custom.js?v={{ .AssetVersion }}" async defer></script>
{{ if ne .FaviconURL "" }}
<link rel="shortcut icon" href="{{ .FaviconURL }}" type="image/x-icon" />
<link rel="icon" href="{{ .FaviconURL }}" type="image/x-icon" />
{{ else }}
<link rel="shortcut icon" href="/public/static/favicon.png?v={{ .AssetVersion }}" type="image/x-icon" />
<link rel="icon" href="/public/static/favicon.png?v={{ .AssetVersion }}" type="image/png" />
{{ end }}
</head>
<body>