瀏覽代碼

Add web manifest

Close #312
George Cushen 7 年之前
父節點
當前提交
b9ee3b4a6f
共有 4 個文件被更改,包括 14 次插入1 次删除
  1. 2 1
      layouts/partials/header.html
  2. 二進制
      static/img/apple-touch-icon.png
  3. 二進制
      static/img/icon-192.png
  4. 12 0
      static/site.webmanifest

+ 2 - 1
layouts/partials/header.html

@@ -84,8 +84,9 @@
   <link rel="feed" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
   {{ end }}
 
+  <link rel="manifest" href="site.webmanifest">
   <link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
-  <link rel="apple-touch-icon" type="image/png" href="{{ "/img/apple-touch-icon.png" | relURL }}">
+  <link rel="apple-touch-icon" type="image/png" href="{{ "/img/icon-192.png" | relURL }}">
 
   <link rel="canonical" href="{{ .Permalink }}">
 

二進制
static/img/apple-touch-icon.png


二進制
static/img/icon-192.png


+ 12 - 0
static/site.webmanifest

@@ -0,0 +1,12 @@
+{
+    "icons": [{
+      "src": "img/icon.png",
+      "sizes": "32x32",
+      "type": "image/png"
+    },{
+        "src": "img/icon-192.png",
+        "sizes": "192x192",
+        "type": "image/png"
+    }],
+    "start_url": "/"
+}