askclass-news-theme 0.3.0 → 0.4.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 +27 -5
- data/_includes/grid.html +1 -1
- data/_includes/post/nextprev.html +19 -13
- data/_layouts/hashtag.html +31 -0
- data/_layouts/post.html +1 -1
- data/_sass/_default.scss +24 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe2831ba003b1d4e6dee8eb49bdbbea8b1ef9daaaa6f73cab331ec15bd9b9981
|
4
|
+
data.tar.gz: c06277f57206b19c316507ffa198859ef16d8f2420d6c57b9a249c6c42aa21a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '03180d790acd0b4526e9e2307b688fcc685759a03f3e518295336cce2a7cb33d7b084a3a5a50f09cf7759ce4136ec70294df58eed5fa2942de292a8bcf16ce97'
|
7
|
+
data.tar.gz: df3f0c2b3d8cd4409046ea1cf8e208d9dd78d6c09aa12b4e14a08a6406a184bbaaedd19950a9392575da2a8b0703cde14296942cb92dc9f789a2e01020e016a2
|
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
|
6
|
-
trajectory
|
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://
|
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
|
-
|
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
|
+
keep_files:
|
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
@@ -1,18 +1,24 @@
|
|
1
|
-
{
|
2
|
-
{% if p %}
|
1
|
+
{%- assign p = page[include.p] -%}
|
3
2
|
<div class="paginator">
|
4
|
-
{
|
5
|
-
{
|
6
|
-
{
|
7
|
-
|
8
|
-
|
9
|
-
{
|
10
|
-
|
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>{{
|
14
|
+
<span>{{ indicator }}</span>
|
13
15
|
<span class="material-icons">navigate_{{ arrow }}</span>
|
14
16
|
</div>
|
15
|
-
<
|
16
|
-
|
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 }}"> </div>
|
23
|
+
{% endif -%}
|
17
24
|
</div>
|
18
|
-
{% endif %}
|
@@ -0,0 +1,31 @@
|
|
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 -%}
|
16
|
+
{%- if posts.size -%}
|
17
|
+
{% include grid.html posts=posts %}
|
18
|
+
{%- else -%}
|
19
|
+
<article class="tiles">
|
20
|
+
<ul>
|
21
|
+
{%- for t in site.tags -%}
|
22
|
+
<li><a href="/hashtags/{{ t[0] }}">{{ t[0] }}<sup>{{ t[1].size }}</sup></a></li>
|
23
|
+
{%- endfor -%}
|
24
|
+
</ul>
|
25
|
+
</article>
|
26
|
+
{%- endif -%}
|
27
|
+
{%- include footer.html %}
|
28
|
+
</body>
|
29
|
+
</html>
|
30
|
+
|
31
|
+
|
data/_layouts/post.html
CHANGED
data/_sass/_default.scss
CHANGED
@@ -186,3 +186,27 @@ 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: 10px;
|
199
|
+
margin: 5px;
|
200
|
+
border-radius: 5px;
|
201
|
+
text-align: center;
|
202
|
+
background-color: $secondaryColor;
|
203
|
+
a {
|
204
|
+
color: $bgColor;
|
205
|
+
}
|
206
|
+
sup {
|
207
|
+
vertical-align: 3px;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
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.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2022-06-22 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
|