Skip to content

Commit

Permalink
fix: favicon markup (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
salim-b authored Oct 29, 2024
1 parent be9fe9c commit 599147c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/site/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -39,4 +39,4 @@
</nav>
</div>
</header>
</div>
</div>
4 changes: 2 additions & 2 deletions static/public/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 599147c

Please sign in to comment.