askclass-course-theme 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +5 -1
- data/_includes/foot/pwaupdate.html +3 -2
- data/_includes/head/common.html +1 -1
- data/_layouts/default.html +3 -1
- data/assets/site.webmanifest +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aafc1e9d45a313b35dda95263c6056b6a5dbcdce114afe55c5f10bd3fbee28e7
|
4
|
+
data.tar.gz: ddce588ee85b9ff572bc25bf01d1fd97d1b417f6bf9595a5cb91a5128564b191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5d8f4e9f1cb99e737051a652647da6145d33d58da498578670ced451cfdd5f89906e8ad3640b1472f880208d0ae253ef0bcecc5509da704fc1a9a43d6d48a30
|
7
|
+
data.tar.gz: cf79699e5bf8348347b83b4e1b89b2c7c5e4c4a7727582799b3ca6ea2215e464681f21117eb038564efe8003dcdec07c523561cf6a07960774a9f1efc4e8950b
|
data/_config.yml
CHANGED
@@ -22,6 +22,10 @@ acc:
|
|
22
22
|
alt_image: "logo.svg"
|
23
23
|
alt_size: 200
|
24
24
|
sizes: [ 48, 96, 144, 192, 300, 512 ]
|
25
|
+
shortcut:
|
26
|
+
name: Syllabus
|
27
|
+
url: https://acc.askclass.com/session/session-01
|
28
|
+
desc: Class syllabus and contact information
|
25
29
|
meta:
|
26
30
|
apple_icon: "logo-300.png"
|
27
31
|
og_image: "logo-square-512.png"
|
@@ -65,7 +69,7 @@ collections:
|
|
65
69
|
|
66
70
|
defaults:
|
67
71
|
- scope:
|
68
|
-
path: ""
|
72
|
+
path: "*.html"
|
69
73
|
values:
|
70
74
|
layout: "default"
|
71
75
|
- scope:
|
@@ -1,5 +1,6 @@
|
|
1
|
-
{% assign
|
2
|
-
{%
|
1
|
+
{% assign pwafile = site.static_files | where: "path", "/pwabuilder-sw.js" %}
|
2
|
+
{% assign offlinefile = site.static_files | where: "path", "/offline.html" %}
|
3
|
+
{% if file.size != 0 && offlinefile.size != 0 %}
|
3
4
|
<script defer type="module">
|
4
5
|
import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate';
|
5
6
|
const el = document.createElement('pwa-update');
|
data/_includes/head/common.html
CHANGED
@@ -41,5 +41,5 @@
|
|
41
41
|
|
42
42
|
<link rel="apple-touch-icon" href="{{ assets}}{{ acc.meta.apple_icon }}" />
|
43
43
|
{% for size in acc.logo.sizes %}
|
44
|
-
<link rel="apple-touch-icon" sizes="{{size}}x{{size}}" href="{{ assets }}logo-{{size}}.png" />
|
44
|
+
<link rel="apple-touch-icon" sizes="{{size}}x{{size}}" href="{{ assets }}logo-square-{{size}}.png" />
|
45
45
|
{% endfor %}
|
data/_layouts/default.html
CHANGED
@@ -5,8 +5,10 @@
|
|
5
5
|
{% include logo.html %}
|
6
6
|
{% if page.url == '/' %}
|
7
7
|
{% include course.html %}
|
8
|
-
{% elsif page.url == '/404' %}
|
8
|
+
{% elsif page.url == '/404.html' %}
|
9
9
|
<h2 class="center-align">Page not found!</h2>
|
10
|
+
{% elsif page.url == '/offline.html' %}
|
11
|
+
<h2 class="center-align">You're Currently Offline</h2>
|
10
12
|
{% else %}
|
11
13
|
{{ content }}
|
12
14
|
{% endif %}
|
data/assets/site.webmanifest
CHANGED
@@ -50,8 +50,21 @@
|
|
50
50
|
},
|
51
51
|
{
|
52
52
|
"src": "logo-icon.svg",
|
53
|
-
"type": "image/
|
54
|
-
"sizes": "any"
|
53
|
+
"type": "image/svg+xml",
|
54
|
+
"sizes": "any",
|
55
|
+
"purpose": "any"
|
56
|
+
}
|
57
|
+
],
|
58
|
+
"lang": "en",
|
59
|
+
"display_override": [
|
60
|
+
"standalone",
|
61
|
+
"fullscreen"
|
62
|
+
],
|
63
|
+
"shortcuts": [
|
64
|
+
{
|
65
|
+
"name": "{{ site.acc.shortcut.name }}",
|
66
|
+
"url": "{{ site.acc.shortcut.url }}",
|
67
|
+
"description": "{{ site.acc.shortcut.desc }}"
|
55
68
|
}
|
56
69
|
]
|
57
70
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: askclass-course-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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-10-
|
11
|
+
date: 2022-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|