askclass-course-theme 0.7.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5e2964997b8ef423879ee89d636d0ef5a843926cd4e9dcddce7ec640ece573b
4
- data.tar.gz: 131b3047ff12ca211a4bc0adcb98d87a1ff196b99b23a4490edcf631f63dc72d
3
+ metadata.gz: 58556eda0ec2b4f641cdeb7abdbf4a342935a059d18b92097a8432b14e1140e4
4
+ data.tar.gz: dc1d7bd7ffcd8531f1fff6aadb7365565eee993c87c71b766cb6119654568f4c
5
5
  SHA512:
6
- metadata.gz: 1451500fc7ab750b6d3a7a22fd3750335a5695516e1b1de4afcb31de0c9af1f4c3409e2caef2a904c0889861d9ff174da693235b457b2c00616127882e20ac4f
7
- data.tar.gz: dc40402bbf632ee19b011afd297a999e978ed69f5f1caf8fb66d607d5881d60a93cd1f14f40799a7f4028722f144a2a01ede7e113b25cc629f3bb9e5337bfda7
6
+ metadata.gz: 92d67474765579b087fecbe2a02a25fec3fadb2ea4bf5969a66f58333e6d629b3ddeb594c1cc3d58727d486f5ba5e5ca5bce120a7a25759e248a294529dfd82d
7
+ data.tar.gz: da5f36fa59a4cef5ca886f1556b076874436060988e1ad3157fdc76042a21c165d2081a085322ee7334f17ac47d24d8c38740accd90ccb5e5126e4efc11f9527
data/_config.yml CHANGED
@@ -22,10 +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
+ shortcuts:
26
+ - name: Syllabus
27
+ url: https://acc.askclass.com/session/session-01
28
+ desc: Class syllabus and contact information
29
29
  meta:
30
30
  apple_icon: "logo-300.png"
31
31
  og_image: "logo-square-512.png"
@@ -0,0 +1,6 @@
1
+ {% for i in include.images %}
2
+ <img width="100%" src="{{ i.src }}" alt="{{ i.desc }}" />
3
+ {% assign _size = include.images | size %}
4
+ {% if forloop.index != _size %}<hr />{% endif %}
5
+ {% endfor %}
6
+
@@ -1,5 +1,5 @@
1
1
  {% for v in include.videos %}
2
2
  {% include session/youtube.html id=v %}
3
- {% assign _size = videos | size %}
3
+ {% assign _size = include.videos | size %}
4
4
  {% if forloop.index != _size %}<hr />{% endif %}
5
5
  {% endfor %}
@@ -11,6 +11,8 @@
11
11
 
12
12
  <section class="center-align spacer content">
13
13
  <article>
14
+ {% include session/images.html images=session_data.images %}
15
+
14
16
  {% include session/points.html %}
15
17
 
16
18
  {% include session/videos.html videos=session_data.videos %}
@@ -1,53 +1,44 @@
1
1
  ---
2
2
  ---
3
+ {%- assign acc = site.acc -%}
3
4
  {
4
- "background_color": "{{ site.acc.color.bg }}",
5
- "theme_color": "{{ site.acc.color.theme }}",
5
+ "background_color": "{{ acc.color.bg }}",
6
+ "theme_color": "{{ acc.color.theme }}",
6
7
  "name": "{{ site.title }}",
7
- "short_name": "{{ site.acc.short_name }}",
8
- "categories": [ "{{ site.acc.categories | join: '","' }}" ],
8
+ "short_name": "{{ acc.short_name }}",
9
+ "categories": [ "{{ acc.categories | join: '","' }}" ],
9
10
  "display": "standalone",
10
11
  "scope": "/",
11
12
  "start_url": "/",
12
13
  "description": "{{ site.description | strip_newlines }}",
13
14
  "orientation": "portrait-primary",
15
+ "lang": "en",
14
16
  "dir": "auto",
15
- "icons": [
16
- {
17
- "src": "logo-48.png",
18
- "sizes": "48x48",
19
- "type": "image/png",
20
- "purpose": "maskable"
21
- },
22
- {
23
- "src": "logo-96.png",
24
- "sizes": "96x96",
25
- "type": "image/png",
26
- "purpose": "maskable"
27
- },
17
+ {%- if acc.shortcuts %}
18
+ "shortcuts": [
19
+ {%- for sc in acc.shortcuts %}
28
20
  {
29
- "src": "logo-144.png",
30
- "sizes": "144x144",
31
- "type": "image/png",
32
- "purpose": "maskable"
33
- },
21
+ "name": "{{ sc.name }}",
22
+ "url": "{{ sc.url }}",
23
+ "description": "{{ sc.desc }}"
24
+ }{%- if forloop.index != forloop.length %},{%- endif %}
25
+ {%- endfor %}
26
+ ],
27
+ {%- endif %}
28
+ "icons": [
29
+ {%- for px in acc.logo.sizes %}
34
30
  {
35
- "src": "logo-192.png",
36
- "sizes": "192x192",
31
+ "src": "logo-{{px}}.png",
32
+ "sizes": "{{px}}x{{px}}",
37
33
  "type": "image/png",
38
34
  "purpose": "maskable"
39
35
  },
36
+ {%- endfor %}
40
37
  {
41
38
  "src": "logo-300.png",
42
39
  "type": "image/png",
43
40
  "sizes": "300x300"
44
41
  },
45
- {
46
- "src": "logo-512.png",
47
- "sizes": "512x512",
48
- "type": "image/png",
49
- "purpose": "maskable"
50
- },
51
42
  {
52
43
  "src": "logo-icon.svg",
53
44
  "type": "image/svg+xml",
@@ -55,19 +46,8 @@
55
46
  "purpose": "any"
56
47
  }
57
48
  ],
58
- "lang": "en",
59
49
  "display_override": [
60
50
  "standalone",
61
51
  "fullscreen"
62
- ],
63
- "shortcuts": [
64
- {
65
- icons: [
66
- "src": "/assets/logo-96.png"
67
- ],
68
- "name": "{{ site.acc.shortcut.name }}",
69
- "url": "{{ site.acc.shortcut.url }}",
70
- "description": "{{ site.acc.shortcut.desc }}"
71
- }
72
52
  ]
73
53
  }
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.7.3
4
+ version: 0.9.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 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -49,6 +49,7 @@ files:
49
49
  - _includes/segment/nav.html
50
50
  - _includes/session/content_revealer.html
51
51
  - _includes/session/header.html
52
+ - _includes/session/images.html
52
53
  - _includes/session/item.html
53
54
  - _includes/session/next_prev.html
54
55
  - _includes/session/paginator.html