瀏覽代碼

Adjust manifest

Florian Hoss 2 年之前
父節點
當前提交
e75c33b71d
共有 3 個文件被更改,包括 16 次插入9 次删除
  1. 10 7
      static/favicon/site.webmanifest
  2. 5 2
      tailwind.config.js
  3. 1 0
      templates/_base.gohtml

+ 10 - 7
static/favicon/site.webmanifest

@@ -1,19 +1,22 @@
 {
-    "name": "",
-    "short_name": "",
+    "name": "GoDash: A blazing fast start-page written in Go",
+    "short_name": "GoDash",
     "icons": [
         {
-            "src": "/android-chrome-192x192.png",
+            "src": "/static/favicon/android-chrome-192x192.png",
             "sizes": "192x192",
             "type": "image/png"
         },
         {
-            "src": "/android-chrome-512x512.png",
+            "src": "/static/favicon/android-chrome-512x512.png",
             "sizes": "512x512",
             "type": "image/png"
         }
     ],
-    "theme_color": "#ffffff",
-    "background_color": "#ffffff",
-    "display": "standalone"
+    "theme_color": "#d07915",
+    "background_color": "#d07915",
+    "display": "standalone",
+    "description": "A blazing fast start page for your services written with Go and TailwindCSS",
+    "start_url": "/",
+    "scope": "/"
 }

+ 5 - 2
tailwind.config.js

@@ -10,10 +10,13 @@ module.exports = {
       {
         light: {
           ...require("daisyui/src/colors/themes")["[data-theme=light]"],
-          primary: "#0047af",
+          primary: "#d07915",
+        },
+        halloween: {
+          ...require("daisyui/src/colors/themes")["[data-theme=halloween]"],
+          primary: "#d07915",
         },
       },
-      "halloween",
     ],
     darkTheme: "halloween",
   },

+ 1 - 0
templates/_base.gohtml

@@ -6,6 +6,7 @@
       <title>{{ template "title" . }}</title>
       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
       <meta name="description" content="A blazing fast start-page for services written in Go " />
+      <meta name="theme-color" content="#d07915" />
 
       <link rel="icon" type="image/x-icon" href="/static/favicon/favicon.ico" />
       <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon/favicon-32x32.png" />