askclass-news-theme 0.3.0 → 0.4.2

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: e914d6ff6255614ac81e2a9582fbfbf51684f23d406560e105a83cc1b6297c98
4
- data.tar.gz: 83000ebcdb654ef0cc61877b111530f56c42fabd280c7c3d1a0c0d2072415d8f
3
+ metadata.gz: ea2d50e15e02b83afc318974b71d6a5641c816d686bb47dc84db630ab3fb8cea
4
+ data.tar.gz: eafbe510f5dc6dc298111942e419c54b16bed33a315c56fa22dbbfe5925d6dc4
5
5
  SHA512:
6
- metadata.gz: d2ed0efca9f7af7ccd7aaf4f271e5f33e99f3137d70b1280534ca5b13574e512091085c98323f49de11d829787b7f907a4f6c5bea22c99eefb3f5ebb25d077db
7
- data.tar.gz: 2d7c1d57ad5a60031b07a48b6b8f2db31c646b9bbb737839a34d9437bd97de90030583cce31924e01a955d2e2ffc2ee9b2ca1c719bd41788b2b6a6be3c9fd260
6
+ metadata.gz: 7db0f6b3d5b38789ea9cbb6e69ff42276ccc683b05241984a3e5f8d2f621096db2ba70beac84a508eb2713c332d9f0c7d9a5e0f514e4fc98ddea6771f2560fda
7
+ data.tar.gz: 34ecfb00cdd09fed9a2561b70416c9cc9750bf26f6bd55bb5cc07138ca1ac9cf4cd8d05099ba5236ed4b98b622d57eed3fa808194e546399af65b41f708f067d
data/_config.yml CHANGED
@@ -2,8 +2,8 @@
2
2
  title: "AskClass News"
3
3
  description: >
4
4
  Exploring the intersection between education and technology;
5
- how innovations in cross-disciplinary learning reorients the
6
- trajectory of our society toward love and appreciation of life.
5
+ how innovations in cross-disciplinary learning reorients our
6
+ trajectory toward love and appreciation of life.
7
7
 
8
8
  acn:
9
9
  date_format: "%b %d, %Y"
@@ -11,7 +11,7 @@ acn:
11
11
  color:
12
12
  theme: "#ffc100"
13
13
  bg: "#222"
14
- url: "https://news.askclass.com"
14
+ url: "https://acn.askclass.com"
15
15
  categories:
16
16
  - education
17
17
  social:
@@ -56,18 +56,40 @@ acn:
56
56
  - Share+Tech+Mono
57
57
  - Material+Icons
58
58
 
59
- # Add the below to your _config.yml
60
59
  collections_dir: content
61
60
  collections:
62
61
  writers:
63
62
  output: true
63
+ hashtags:
64
+ output: true
64
65
 
65
- # Theme
66
+ ignore_theme_config: false
66
67
  excerpt_separator: "<!--more-->"
68
+ permalink: /:year/:month/:day/:title
69
+
70
+ defaults:
71
+ - scope:
72
+ type: "hashtags"
73
+ values:
74
+ layout: "hashtag"
75
+ - scope:
76
+ type: "writers"
77
+ values:
78
+ layout: "writer"
79
+ - scope:
80
+ type: "posts"
81
+ values:
82
+ layout: "post"
67
83
 
68
84
  sass:
69
85
  style: compact
70
86
 
87
+ include:
88
+ - index.html
89
+ - 404.html
90
+ - pwabuilder-sw.js
91
+ - content
92
+
71
93
  exclude:
72
94
  - README.md
73
95
  - LICENSE
data/_includes/grid.html CHANGED
@@ -32,7 +32,7 @@
32
32
  {% if post.tags %}
33
33
  <div class="tags">
34
34
  {% for tag in post.tags %}
35
- <small>{{ tag }}</small>
35
+ <small><a href="/hashtags/{{ tag }}">{{ tag }}</a></small>
36
36
  {% endfor %}
37
37
  </div>
38
38
  {% endif %}
data/_includes/logo.html CHANGED
@@ -4,5 +4,9 @@
4
4
  width="{{ include.size | default: site.acn.logo.size }}"
5
5
  title="{{ site.title }}"/>
6
6
  </a>
7
+ {%- if include.href %}
8
+ <h3 class="special"><a href="{{ include.href }}">{{ include.title | default: site.title }}</a></h3>
9
+ {% else %}
7
10
  <h3 class="special">{{ include.title | default: site.title }}</h3>
11
+ {% endif -%}
8
12
  </section>
@@ -1,18 +1,24 @@
1
- {% assign p = page[include.p] %}
2
- {% if p %}
1
+ {%- assign p = page[include.p] -%}
3
2
  <div class="paginator">
4
- {% if include.p == 'next' %}
5
- {% assign align = 'pull-left' %}
6
- {% assign arrow = 'before' %}
7
- {% else %}
8
- {% assign align = 'pull-right' %}
9
- {% assign arrow = 'next' %}
10
- {% endif %}
3
+ {%- if include.p == 'next' -%}
4
+ {%- assign align = 'pull-left' -%}
5
+ {%- assign arrow = 'before' -%}
6
+ {%- assign indicator = 'Newer' -%}
7
+ {%- else -%}
8
+ {%- assign align = 'pull-right' -%}
9
+ {%- assign arrow = 'next' -%}
10
+ {%- assign indicator = 'Older' -%}
11
+ {%- endif -%}
12
+ {%- if p %}
11
13
  <div class="{{ align }}">
12
- <span>{{ include.p | capitalize }}</span>
14
+ <span>{{ indicator }}</span>
13
15
  <span class="material-icons">navigate_{{ arrow }}</span>
14
16
  </div>
15
- <img src="{{ p.image }}" width="100%" alt="{{ p.title }}" />
16
- <a href="{{ p.url }}">{{ p.title }}</a>
17
+ <a href="{{ p.url }}">
18
+ <img src="{{ p.image }}" width="100%" alt="{{ p.title }}" />
19
+ {{ p.title }}
20
+ </a>
21
+ {%- else %}
22
+ <div class="{{ align }}">&nbsp;</div>
23
+ {% endif -%}
17
24
  </div>
18
- {% endif %}
@@ -0,0 +1,33 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ {% include header.html -%}
4
+ <body>
5
+ {%- assign url = page.url | split: '/' -%}
6
+ {%- assign tag = url.last -%}
7
+ {%- for t in site.tags -%}
8
+ {%- if t[0] != tag -%}
9
+ {%- continue -%}
10
+ {%- endif -%}
11
+ {%- assign posts = t[1] -%}
12
+ {%- break -%}
13
+ {%- endfor -%}
14
+
15
+ {% include logo.html image=site.acn.logo.alt_image size=site.acn.logo.alt_size title=tag href='/hashtags' -%}
16
+ {%- if posts.size -%}
17
+ {% include grid.html posts=posts %}
18
+ {%- else -%}
19
+ {%- capture site_tags -%}
20
+ {% for tag in site.tags %}{{ tag[0] }}{% unless forloop.last %},{% endunless %}{% endfor -%}
21
+ {% endcapture -%}
22
+ {% assign tags_list = site_tags | split: ',' | sort_natural -%}
23
+ <article class="tiles">
24
+ <ul>
25
+ {%- for item in tags_list -%}
26
+ <li><a href="/hashtags/{{ item }}">{{ item }}<sup>{{ site.tags[item].size }}</sup></a></li>
27
+ {%- endfor -%}
28
+ </ul>
29
+ </article>
30
+ {%- endif -%}
31
+ {%- include footer.html %}
32
+ </body>
33
+ </html>
data/_layouts/post.html CHANGED
@@ -27,7 +27,7 @@
27
27
  {% if page.tags %}
28
28
  <div class="spacer tags">
29
29
  {% for tag in page.tags %}
30
- <small>{{ tag }}</small>
30
+ <small><a href="/hashtags/{{ tag }}">{{ tag }}</a></small>
31
31
  {% endfor %}
32
32
  </div>
33
33
  {% endif %}
data/_sass/_default.scss CHANGED
@@ -186,3 +186,34 @@ article {
186
186
  display: inline-block;
187
187
  }
188
188
  }
189
+
190
+ article.tiles {
191
+ ul {
192
+ list-style-type: none;
193
+ padding-inline-start: unset;
194
+ display: grid;
195
+ grid-gap: 1rem;
196
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
197
+ li {
198
+ padding: 5px;
199
+ margin: 5px;
200
+ border-radius: 5px;
201
+ text-align: center;
202
+ background-color: $themeColor;
203
+ height: 60px;
204
+ display: flex;
205
+ align-items: center;
206
+ justify-content: center;
207
+ a {
208
+ color: $bgColor;
209
+ overflow: hidden;
210
+ text-overflow: ellipsis;
211
+ word-break: break-word;
212
+ }
213
+ sup {
214
+ vertical-align: 3px;
215
+ }
216
+ }
217
+ }
218
+ }
219
+
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.3.0
4
+ version: 0.4.2
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-20 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -46,6 +46,7 @@ files:
46
46
  - _includes/post/paginator.html
47
47
  - _includes/writer.html
48
48
  - _layouts/default.html
49
+ - _layouts/hashtag.html
49
50
  - _layouts/page.html
50
51
  - _layouts/post.html
51
52
  - _layouts/writer.html