Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Adding meta description, apple-touch-icon, and maskable icon #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="theme-color" content="#333333">
<meta name="description" content="Write a description of your Sapper app here">

%sapper.base%

<link rel="stylesheet" href="global.css">
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
<link rel="icon" type="image/png" href="favicon.png">

<link rel="apple-touch-icon" href="/logo-192.png">
<!-- Sapper creates a <script> tag containing `src/client.js`
and anything else it needs to hydrate the app and
initialise the router -->
Expand All @@ -25,9 +26,11 @@
the current page has one -->
%sapper.head%
</head>

<body>
<!-- The application will be rendered inside this element,
because `src/client.js` references it -->
<div id="sapper">%sapper.html%</div>
</body>
</html>

</html>
Binary file added static/logo-192-maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"src": "logo-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "maskable-logo-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
}
]
}
}