Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 6440b8e

Browse files
committed
pwa post ready 🚀
1 parent 02cbe1e commit 6440b8e

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log
22
All changes to Chicio coding will be documented in this file.
33

4+
## [1.1.6](https://github.com/chicio/chicio.github.io/releases/tag/1.1.6)
5+
Release date: 2019-03-03.
6+
7+
#### Added
8+
- new pages-gem release
9+
10+
411
## [1.1.5](https://github.com/chicio/chicio.github.io/releases/tag/1.1.5)
512
Release date: 2019-02-23.
613

_drafts/2019-03-15-github-pages-progressive-web-app.md renamed to _posts/2019-03-03-github-pages-progressive-web-app.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
layout: post
3-
title: "Transform your Github Pages blog into a Progressive Web App"
3+
title: "Progressive Web App: an app-like experience for your website users"
44
description: "In this post I will talk about how I transformed my blog on Github Pages and Jekyll into a PWA."
5-
date: 2019-03-15
5+
date: 2019-03-03
66
image: /assets/images/posts/pwa-logo.jpg
7-
tags: [pwa, web development, javascript],
7+
tags: [pwa, web development, javascript]
88
comments: true
99
seo:
1010
- type: "BlogPosting"
@@ -148,7 +148,7 @@ Anyway, there are some particular features of a service worker you must be aware
148148

149149
So how do I created the service worker for my blog? I started by adding a `sw.js` file to the root of project. This is the standard position for a service worker source code. Then I added the registration script before the end of the body of my pages. Below you can find the registration script.
150150

151-
```javascript
151+
```html
152152
<script>
153153
if('serviceWorker' in navigator) {
154154
navigator.serviceWorker
@@ -168,7 +168,7 @@ Then I started to write my service worker. To do that, first I studied the lifec
168168

169169
So in the install event I followed the standard approach:
170170

171-
* I opened the cache for my blog pwa with name `chicioCodingCache{% include version.txt %}`, where version.txt is a file that is automatically filled with the latest tag number on each `npm version` execution.
171+
* I opened the cache for my blog pwa with name `chicioCodingCache<include version.txt>`, where version.txt is a file that is automatically filled with the latest tag number on each `npm version` execution.
172172
* I added to the cache the files needed to make my pwa works (css and js of the site, and in the future also a HTML scaffolding structure :stuck_out_tongue_winking_eye:).
173173

174174
In the activate event I added a strategy to manage the old caches: I just delete them and I kept only the new one created during the install phase.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)