feat: add web app manifest for better mobile home screen support

This commit is contained in:
2026-05-06 20:19:10 +02:00
parent 7961b13c15
commit 7ec7ca206d
2 changed files with 24 additions and 0 deletions

23
static/manifest.json Normal file
View File

@@ -0,0 +1,23 @@
{
"name": "MyAnimeList",
"short_name": "MAL",
"description": "Personal Anime Watchlist and Discovery",
"start_url": "/",
"display": "standalone",
"background_color": "#0a0a0a",
"theme_color": "#fb923c",
"icons": [
{
"src": "/static/favicon.svg",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "any"
},
{
"src": "/static/favicon.svg",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "maskable"
}
]
}

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MyAnimeList: {{template "title" .}}</title>
<link rel="manifest" href="/static/manifest.json">
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
<link rel="stylesheet" href="/dist/tailwind.css">
<style>