Skip to content

Commit

Permalink
refactor: Moving favicon into the images
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Aug 1, 2021
1 parent f5f7c0a commit 7ef0ba5
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/favicon/mstile-150x150.png"/>
<square150x150logo src="/images/favicon/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"short_name": "Ketchup",
"icons": [
{
"src": "/favicon/android-chrome-192x192.png",
"src": "/images/favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicon/android-chrome-512x512.png",
"src": "/images/favicon/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
Expand Down
14 changes: 7 additions & 7 deletions cmd/ketchup/templates/public.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@ViBiOh">
<meta name="twitter:site" content="{{ publicURL "" }}">
<meta name="twitter:image" content="{{ publicURL "/favicon/android-chrome-512x512.png" }}?v={{ .Version }}">
<meta name="twitter:image" content="{{ publicURL "/images/favicon/android-chrome-512x512.png" }}?v={{ .Version }}">
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:description" content="{{ $description }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ publicURL "" }}">
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{ $description }}">
<meta property="og:image" content="{{ publicURL "/favicon/android-chrome-512x512.png" }}?v={{ .Version }}">
<meta property="og:image" content="{{ publicURL "/images/favicon/android-chrome-512x512.png" }}?v={{ .Version }}">
<meta property="og:image:height" content="512">
<meta property="og:image:width" content="512">
{{ end }}

{{ define "favicon" }}
<link rel="apple-touch-icon" sizes="180x180" href="{{ url "/favicon/apple-touch-icon.png" }}?v={{ .Version }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url "/favicon/favicon-32x32.png" }}?v={{ .Version }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ url "/favicon/favicon-16x16.png" }}?v={{ .Version }}">
<link rel="manifest" href="{{ url "/favicon/site.webmanifest" }}?v={{ .Version }}">
<link rel="mask-icon" href="{{ url "/favicon/safari-pinned-tab.svg" }}?v={{ .Version }}" color="#5bbad5">
<link rel="apple-touch-icon" sizes="180x180" href="{{ url "/images/favicon/apple-touch-icon.png" }}?v={{ .Version }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url "/images/favicon/favicon-32x32.png" }}?v={{ .Version }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ url "/images/favicon/favicon-16x16.png" }}?v={{ .Version }}">
<link rel="manifest" href="{{ url "/images/favicon/site.webmanifest" }}?v={{ .Version }}">
<link rel="mask-icon" href="{{ url "/images/favicon/safari-pinned-tab.svg" }}?v={{ .Version }}" color="#5bbad5">
<meta name="theme-color" content="#f8f8f8">
{{ end}}

Expand Down

0 comments on commit 7ef0ba5

Please sign in to comment.