浏览代码

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": "/"
+}