askclass-news-theme 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3dc2c0fef45d232b01974276cb742e126d03859dea8366c3484af1683597a1a
4
- data.tar.gz: 4c9509ff4642125c948749050d6082bb14b8acc769f83f340b18bf5c1be9499f
3
+ metadata.gz: 78a5be2cc3406c90bd9af6a0ea34f40f237837fb2973a5474cdfdefade9c9043
4
+ data.tar.gz: 684c377efe7863c6b266d13e743291aa6f0c18d694bd3ce3c6c4081729a497b2
5
5
  SHA512:
6
- metadata.gz: b039f8fbbbcbf151f448107e70868ab4c0567e7cf471cba596d18a9375680f79bfa7d85e3efbf394ea080a75852209f9c63a3d3054eaf3659c15b9a9404d6090
7
- data.tar.gz: 484de07440398b4ffc90f74903b1dd4d1aa60e15cd20b53f1acdaa29e33072c9ed4497bd35a145f1510d8ace48d7ebf0deaebe041847bb0306a5ff09369954d1
6
+ metadata.gz: 00c3b9630de25fb0d83232e3fdb3094e1698b74657810486f8bf241b983d616ebd723435a89a17c4e49c53d7b6a4bcd73b60baa228f995ae8b667aa2e28169ee
7
+ data.tar.gz: a8b4f8216ad25ee4b3bbac2060374280dd51d5add4dd691364bdf29733a18684de7cd9c12000707470be32e76370a67092ec8506f76ab52e82a977711c824ddd
data/README.md CHANGED
@@ -27,7 +27,7 @@ $ bundle
27
27
  Customizable fields in the `_config.yaml`:
28
28
 
29
29
  Field | Description
30
- --- | :---
30
+ :--- | :---
31
31
  `title` | Name of the site
32
32
  `description` | Describe the site
33
33
  `site_url` | For meta field
data/index.html ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include logo.html %}
6
+ {% include grid.html posts=site.posts %}
data/manifest.json ADDED
@@ -0,0 +1,57 @@
1
+ ---
2
+ ---
3
+ {
4
+ "background_color": "{{ site.color.bg }}",
5
+ "theme_color": "{{ site.color.theme }}",
6
+ "name": "{{ site.title }}",
7
+ "short_name": "{{ site.title }}",
8
+ "categories": [ "{{ site.site_cat | join: '","' }}" ],
9
+ "display": "standalone",
10
+ "scope": "/",
11
+ "start_url": "/",
12
+ "description": "{{ site.description }}",
13
+ "orientation": "portrait-primary",
14
+ "dir": "auto",
15
+ "icons": [
16
+ {
17
+ "src": "assets/logo-300.png",
18
+ "type": "image/png",
19
+ "sizes": "300x300"
20
+ },
21
+ {
22
+ "src": "assets/logo-48.png",
23
+ "sizes": "48x48",
24
+ "type": "image/png",
25
+ "purpose": "maskable"
26
+ },
27
+ {
28
+ "src": "assets/logo-96.png",
29
+ "sizes": "96x96",
30
+ "type": "image/png",
31
+ "purpose": "maskable"
32
+ },
33
+ {
34
+ "src": "assets/logo-144.png",
35
+ "sizes": "144x144",
36
+ "type": "image/png",
37
+ "purpose": "maskable"
38
+ },
39
+ {
40
+ "src": "assets/logo-192.png",
41
+ "sizes": "192x192",
42
+ "type": "image/png",
43
+ "purpose": "maskable"
44
+ },
45
+ {
46
+ "src": "assets/logo-512.png",
47
+ "sizes": "512x512",
48
+ "type": "image/png",
49
+ "purpose": "maskable"
50
+ },
51
+ {
52
+ "src": "assets/logo-icon.svg",
53
+ "type": "image/png",
54
+ "sizes": "any"
55
+ }
56
+ ]
57
+ }
data/pwabuilder-sw.js ADDED
@@ -0,0 +1,75 @@
1
+ //This is the service worker with the Advanced caching
2
+
3
+ importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js');
4
+
5
+ const HTML_CACHE = "html";
6
+ const JS_CACHE = "javascript";
7
+ const STYLE_CACHE = "stylesheets";
8
+ const IMAGE_CACHE = "images";
9
+ const FONT_CACHE = "fonts";
10
+
11
+ self.addEventListener("message", (event) => {
12
+ if (event.data && event.data.type === "SKIP_WAITING") {
13
+ self.skipWaiting();
14
+ }
15
+ });
16
+
17
+ workbox.routing.registerRoute(
18
+ ({event}) => event.request.destination === 'document',
19
+ new workbox.strategies.NetworkFirst({
20
+ cacheName: HTML_CACHE,
21
+ plugins: [
22
+ new workbox.expiration.ExpirationPlugin({
23
+ maxEntries: 10,
24
+ }),
25
+ ],
26
+ })
27
+ );
28
+
29
+ workbox.routing.registerRoute(
30
+ ({event}) => event.request.destination === 'script',
31
+ new workbox.strategies.StaleWhileRevalidate({
32
+ cacheName: JS_CACHE,
33
+ plugins: [
34
+ new workbox.expiration.ExpirationPlugin({
35
+ maxEntries: 15,
36
+ }),
37
+ ],
38
+ })
39
+ );
40
+
41
+ workbox.routing.registerRoute(
42
+ ({event}) => event.request.destination === 'style',
43
+ new workbox.strategies.StaleWhileRevalidate({
44
+ cacheName: STYLE_CACHE,
45
+ plugins: [
46
+ new workbox.expiration.ExpirationPlugin({
47
+ maxEntries: 15,
48
+ }),
49
+ ],
50
+ })
51
+ );
52
+
53
+ workbox.routing.registerRoute(
54
+ ({event}) => event.request.destination === 'image',
55
+ new workbox.strategies.StaleWhileRevalidate({
56
+ cacheName: IMAGE_CACHE,
57
+ plugins: [
58
+ new workbox.expiration.ExpirationPlugin({
59
+ maxEntries: 15,
60
+ }),
61
+ ],
62
+ })
63
+ );
64
+
65
+ workbox.routing.registerRoute(
66
+ ({event}) => event.request.destination === 'font',
67
+ new workbox.strategies.StaleWhileRevalidate({
68
+ cacheName: FONT_CACHE,
69
+ plugins: [
70
+ new workbox.expiration.ExpirationPlugin({
71
+ maxEntries: 15,
72
+ }),
73
+ ],
74
+ })
75
+ );
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: askclass-news-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - AskClass
@@ -78,9 +78,12 @@ files:
78
78
  - assets/logo.svg
79
79
  - content/_posts/2022-06-15-the-academy.md
80
80
  - content/_writers/plato.md
81
+ - index.html
82
+ - manifest.json
83
+ - pwabuilder-sw.js
81
84
  homepage: https://news.askclass.com
82
85
  licenses:
83
- - MIT
86
+ - MPL-2.0
84
87
  metadata: {}
85
88
  post_install_message:
86
89
  rdoc_options: []
@@ -97,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
100
  - !ruby/object:Gem::Version
98
101
  version: '0'
99
102
  requirements: []
100
- rubygems_version: 3.3.15
103
+ rubygems_version: 3.2.33
101
104
  signing_key:
102
105
  specification_version: 4
103
106
  summary: Simple responsive Jekyll theme featuring posts and authors.