askclass-news-theme 0.1.1 → 0.2.0

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: 78a5be2cc3406c90bd9af6a0ea34f40f237837fb2973a5474cdfdefade9c9043
4
- data.tar.gz: 684c377efe7863c6b266d13e743291aa6f0c18d694bd3ce3c6c4081729a497b2
3
+ metadata.gz: 04ab0a742b4f5ad92ad983ea6232402d0d7b3680f88f1a3d900447fb5199d059
4
+ data.tar.gz: 6a7733536f26e2c35abc21dd1ad11204620d0707d34e9742a313e56d9bdc7e40
5
5
  SHA512:
6
- metadata.gz: 00c3b9630de25fb0d83232e3fdb3094e1698b74657810486f8bf241b983d616ebd723435a89a17c4e49c53d7b6a4bcd73b60baa228f995ae8b667aa2e28169ee
7
- data.tar.gz: a8b4f8216ad25ee4b3bbac2060374280dd51d5add4dd691364bdf29733a18684de7cd9c12000707470be32e76370a67092ec8506f76ab52e82a977711c824ddd
6
+ metadata.gz: 408ef5fc8b97e65da1c8d1ea8e15644db507d3f4f8d88a9e72e53686b8e721b4c89c8ea3ee532ba37643d93b63acbe5f0349a7e6b7ba20197084c9c1a1b87c96
7
+ data.tar.gz: a6d6ecfb7fa12dec2c1d9d5368ca169cb88cbee9d1230bdd947c8423227f5ea40b0c88d78ef6d7658f9b2767b322ed7c61a99a8f0e638686444732a00b7f4e11
data/_config.yml CHANGED
@@ -1,3 +1,9 @@
1
+ # Add the below to your _config.yml
2
+ collections_dir: content
3
+ collections:
4
+ writers:
5
+ output: true
6
+
1
7
  # Custom fields
2
8
  title: "AskClass News"
3
9
  description: "News and discussions on learning and education"
@@ -13,6 +19,7 @@ logo:
13
19
  color:
14
20
  theme: "#ffc100"
15
21
  bg: "#222"
22
+ date_format: "%b %d, %Y"
16
23
 
17
24
  footer:
18
25
  - icon: "copyright"
@@ -35,11 +42,6 @@ excerpt_separator: "<!--more-->"
35
42
  sass:
36
43
  style: compact
37
44
 
38
- collections_dir: content
39
- collections:
40
- writers:
41
- output: true
42
-
43
45
  exclude:
44
46
  - README.md
45
47
  - LICENSE.txt
data/_includes/grid.html CHANGED
@@ -2,7 +2,7 @@
2
2
  {% for post in include.posts %}
3
3
  <li class="card-tab {{ post.color }}">
4
4
  <div class="top-bar">
5
- {{ post.date | date: "%b %d, %Y" }}
5
+ {{ post.date | date: site.date_format }}
6
6
  </div>
7
7
  {% if post.icon %}
8
8
  <div class="tab"><span class="material-icons">{{ post.icon }}</span></div>
@@ -1,6 +1,5 @@
1
1
 
2
2
  <meta charset="utf-8" />
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
4
3
  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
5
4
 
6
5
  <meta name="application-name" content="{{ site.title }}" />
@@ -18,7 +17,7 @@
18
17
  <meta name="twitter:card" content="summary_large_image">
19
18
  {% endif % %}
20
19
 
21
- <link rel="manifest" href="/manifest.json" />
20
+ <link rel="manifest" href="/assets/site.webmanifest" />
22
21
  {% assign families = site.font_families | join: "&family=" %}
23
22
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family={{ families }}&display=swap" />
24
23
  <link rel="preconnect" href="https://fonts.googleapis.com" />
@@ -14,42 +14,42 @@
14
14
  "dir": "auto",
15
15
  "icons": [
16
16
  {
17
- "src": "assets/logo-300.png",
17
+ "src": "logo-300.png",
18
18
  "type": "image/png",
19
19
  "sizes": "300x300"
20
20
  },
21
21
  {
22
- "src": "assets/logo-48.png",
22
+ "src": "logo-48.png",
23
23
  "sizes": "48x48",
24
24
  "type": "image/png",
25
25
  "purpose": "maskable"
26
26
  },
27
27
  {
28
- "src": "assets/logo-96.png",
28
+ "src": "logo-96.png",
29
29
  "sizes": "96x96",
30
30
  "type": "image/png",
31
31
  "purpose": "maskable"
32
32
  },
33
33
  {
34
- "src": "assets/logo-144.png",
34
+ "src": "logo-144.png",
35
35
  "sizes": "144x144",
36
36
  "type": "image/png",
37
37
  "purpose": "maskable"
38
38
  },
39
39
  {
40
- "src": "assets/logo-192.png",
40
+ "src": "logo-192.png",
41
41
  "sizes": "192x192",
42
42
  "type": "image/png",
43
43
  "purpose": "maskable"
44
44
  },
45
45
  {
46
- "src": "assets/logo-512.png",
46
+ "src": "logo-512.png",
47
47
  "sizes": "512x512",
48
48
  "type": "image/png",
49
49
  "purpose": "maskable"
50
50
  },
51
51
  {
52
- "src": "assets/logo-icon.svg",
52
+ "src": "logo-icon.svg",
53
53
  "type": "image/png",
54
54
  "sizes": "any"
55
55
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: askclass-news-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AskClass
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-15 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -76,11 +76,9 @@ files:
76
76
  - assets/logo-square-96.png
77
77
  - assets/logo.png
78
78
  - assets/logo.svg
79
+ - assets/site.webmanifest
79
80
  - content/_posts/2022-06-15-the-academy.md
80
81
  - content/_writers/plato.md
81
- - index.html
82
- - manifest.json
83
- - pwabuilder-sw.js
84
82
  homepage: https://news.askclass.com
85
83
  licenses:
86
84
  - MPL-2.0
data/index.html DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {% include logo.html %}
6
- {% include grid.html posts=site.posts %}
data/pwabuilder-sw.js DELETED
@@ -1,75 +0,0 @@
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
- );