Forráskód Böngészése

Add web manifest

Close #312
George Cushen 7 éve
szülő
commit
b9ee3b4a6f

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

BIN
static/img/apple-touch-icon.png


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