From 0a8fbff321081fc5ad0c587b4cf985a9049b78ff Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Sat, 14 Mar 2015 00:47:13 +0200 Subject: [PATCH 1/2] service-worker --- _includes/head.html | 13 +++++++++++++ manifest.json | 9 ++++++--- service-worker.js | 2 ++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 service-worker.js diff --git a/_includes/head.html b/_includes/head.html index a1ec1dc..39c3ebd 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -51,4 +51,17 @@ + + diff --git a/manifest.json b/manifest.json index 3903b96..a820ae2 100644 --- a/manifest.json +++ b/manifest.json @@ -8,13 +8,16 @@ layout: null { "src": "{{ site.baseurl }}/img/favicons/favicon-96x96.png", "sizes": "96x96", - "type": "image/png" + "type": "image/png", + "density": "2.0" }, { "src": "{{ site.baseurl }}/img/favicons/apple-touch-icon-144x144.png", "sizes": "144x144", - "type": "image/png" + "type": "image/png", + "density": "3.0" } ], - "display": "standalone" + "display": "standalone", + "start_url": "{{ site.baseurl }}/index.html" } \ No newline at end of file diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..128cd99 --- /dev/null +++ b/service-worker.js @@ -0,0 +1,2 @@ +// Empty service worker for App Install banners to work. +// Can be implemented to have offline and sync support. From 7b3bba8d2b8d9218bceb54e7be217eac00be65f8 Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Sun, 15 Mar 2015 02:08:37 +0200 Subject: [PATCH 2/2] Service worker initialisation is moved to default. --- _includes/head.html | 13 ------------- _layouts/default.html | 3 +++ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 39c3ebd..a1ec1dc 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -51,17 +51,4 @@ - - diff --git a/_layouts/default.html b/_layouts/default.html index 9f7abc7..082503a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -131,6 +131,9 @@ layout: compress {% endif %} + {% if page.permalink == '/schedule/' %}