askclass-news-theme 0.2.10 → 0.3.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: 930e5d5fa04639b25103ec9651119943b3177a85b1cdba31549b2f33c0bea743
4
- data.tar.gz: 52017c5e4579218b292c09c6927258818479ba7846996226f1013c74be8b0ed8
3
+ metadata.gz: e914d6ff6255614ac81e2a9582fbfbf51684f23d406560e105a83cc1b6297c98
4
+ data.tar.gz: 83000ebcdb654ef0cc61877b111530f56c42fabd280c7c3d1a0c0d2072415d8f
5
5
  SHA512:
6
- metadata.gz: 6cad090bf1b832207996f6c11f28c111334a584fc203c6668db328c75a8bd1f201eb6e9f3b3ca949eb091500397db92a76ccb90ff30745ee24fa335fdcf6b8ce
7
- data.tar.gz: 362aee650c01d0e7bca6436a6698ce8993ea50c888afe84dbd52d2247bf5851e60b3fea763db0cb67d3c1ee0b09f6497832804c2acf41177e63bbba38ae31a73
6
+ metadata.gz: d2ed0efca9f7af7ccd7aaf4f271e5f33e99f3137d70b1280534ca5b13574e512091085c98323f49de11d829787b7f907a4f6c5bea22c99eefb3f5ebb25d077db
7
+ data.tar.gz: 2d7c1d57ad5a60031b07a48b6b8f2db31c646b9bbb737839a34d9437bd97de90030583cce31924e01a955d2e2ffc2ee9b2ca1c719bd41788b2b6a6be3c9fd260
@@ -0,0 +1,2 @@
1
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
2
+ <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
@@ -1,10 +1,12 @@
1
+
1
2
  <footer>
2
3
  <ul>
3
- {% for item in site.acn.footer %}
4
+ {% for item in site.acn.footer -%}
4
5
  <li>
5
6
  <span class="material-icons">{{ item.icon }}</span>
6
7
  <a href="{{ item.href }}">{{ item.text }}</a>
7
8
  </li>
8
- {% endfor %}
9
+ {%- endfor %}
9
10
  </ul>
10
11
  </footer>
12
+ {% include foot/mathjax.html -%}
@@ -2,13 +2,11 @@
2
2
  {% include head/meta.html %}
3
3
  {% include head/common.html %}
4
4
  {% include head/pwaupdate.html %}
5
-
6
- <link href="{{ 'assets/css/style.css' | relative_url }}" rel="stylesheet" />
7
-
8
5
  {% if page.collection == 'posts' %}
9
6
  <link href="{{ 'assets/css/md.css' | relative_url }}" rel="stylesheet" />
10
7
  {% else %}
11
8
  <link href="{{ 'assets/css/grid.css' | relative_url }}" rel="stylesheet" />
12
9
  <link href="{{ 'assets/css/tab.css' | relative_url }}" rel="stylesheet" />
13
10
  {% endif %}
11
+ <link href="{{ 'assets/css/style.css' | relative_url }}" rel="stylesheet" />
14
12
  </head>
data/_layouts/post.html CHANGED
@@ -37,7 +37,8 @@
37
37
  <span class="material-icons">source</span>
38
38
  <div>
39
39
  Source:
40
- <a target="_blank" href="{{ page.source_url }}">{{ page.source }}</a>
40
+ <a target="_blank" rel="noopener noreferrer"
41
+ href="{{ page.source_url }}">{{ page.source }}</a>
41
42
  </div>
42
43
  </div>
43
44
  {% endif %}
data/_sass/_bullets.scss CHANGED
@@ -1,9 +1,15 @@
1
- ol > li > ul > li {
2
- list-style-type: disclosure-closed;
3
- }
4
- ol > li > ol > li {
5
- list-style: lower-alpha;
1
+ ol > li {
2
+ ul > li {
3
+ list-style-type: disclosure-closed;
4
+ }
5
+ ol > li {
6
+ list-style: lower-alpha;
7
+ }
6
8
  }
9
+
7
10
  ul > li > ul > li {
8
11
  list-style-type: square;
12
+ ul > li {
13
+ list-style-type: circle;
14
+ }
9
15
  }
data/_sass/_grid.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  $width: 180px;
2
- $height: 150px;
2
+ $height: 180px;
3
3
 
4
4
  ul.grid {
5
5
  list-style-type: none;
@@ -15,6 +15,11 @@ $width: 150px;
15
15
  font-size: 14px;
16
16
  line-height: 1.3;
17
17
  }
18
+ img {
19
+ object-fit: cover;
20
+ width: 100%;
21
+ height: 100px;
22
+ }
18
23
  }
19
24
 
20
25
  .pull-left, .pull-right {
data/_sass/_post.scss CHANGED
@@ -2,6 +2,8 @@ article {
2
2
  max-width: var(--contentWidth);
3
3
  display: flex;
4
4
  flex-direction: column;
5
+ overflow-wrap: break-word;
6
+ word-break: break-word;
5
7
  h1, h2, h3, h4 {
6
8
  color: var(--themeColor);
7
9
  }
@@ -9,10 +9,23 @@ $c8: #598B2C;
9
9
  $c9: #9B2226;
10
10
  $c10: #B18FCF;
11
11
 
12
+ html {
13
+ --c1: #{$c1};
14
+ --c2: #{$c2};
15
+ --c3: #{$c3};
16
+ --c4: #{$c4};
17
+ --c5: #{$c5};
18
+ --c6: #{$c6};
19
+ --c7: #{$c7};
20
+ --c8: #{$c8};
21
+ --c9: #{$c9};
22
+ --c10: #{$c10};
23
+ }
24
+
12
25
  @mixin paint($color) {
13
26
  background-image: linear-gradient(225deg, $color 50%, transparent 50%);
14
27
  border-top-color: $color;
15
- .control {
28
+ .control, .header {
16
29
  .button {
17
30
  background-color: $color;
18
31
  }
data/_sass/_tab.scss CHANGED
@@ -57,7 +57,7 @@ html {
57
57
  }
58
58
 
59
59
  .header {
60
- margin: 0px 50px 0 5px;
60
+ margin: 4px 50px 0 5px;
61
61
  text-align: left;
62
62
  line-height: 1;
63
63
  height: 30px;
@@ -93,6 +93,9 @@ html {
93
93
  color: $fg;
94
94
  }
95
95
  }
96
+ pre, code {
97
+ color: inherit;
98
+ }
96
99
  }
97
100
 
98
101
  .control {
data/_sass/_table.scss CHANGED
@@ -1,18 +1,19 @@
1
- $odd: #3f3f3f;
2
- $header: #2f2f2f;
3
- $border: #333;
1
+ $odd: #2a2a2a;
2
+ $even: #2f2f2f;
4
3
 
5
4
  table {
6
- border-bottom: 1px solid $border;
7
- border-collapse: collapse;
5
+ table-layout: fixed;
8
6
  th {
9
- background-color: $header;
7
+ background-color: $even;
10
8
  }
11
- tr:nth-child(even) {
9
+ tr:nth-child(odd) {
12
10
  background-color: $odd;
13
11
  }
12
+ tr:nth-child(even) {
13
+ background-color: $even;
14
+ }
14
15
  td, th {
15
16
  vertical-align: top;
16
- padding: 5px;
17
+ padding: 7px;
17
18
  }
18
19
  }
data/assets/css/md.scss CHANGED
@@ -5,4 +5,5 @@
5
5
  @import "paginator";
6
6
  @import "bullets";
7
7
  @import "table";
8
+ @import "tab-colors";
8
9
 
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.2.10
4
+ version: 0.3.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-18 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -34,6 +34,7 @@ files:
34
34
  - LICENSE
35
35
  - README.md
36
36
  - _config.yml
37
+ - _includes/foot/mathjax.html
37
38
  - _includes/footer.html
38
39
  - _includes/grid.html
39
40
  - _includes/head/common.html
@@ -77,9 +78,7 @@ files:
77
78
  - assets/logo-square-96.png
78
79
  - assets/logo.svg
79
80
  - assets/site.webmanifest
80
- - content/_posts/2022-06-15-the-academy.md
81
- - content/_writers/plato.md
82
- homepage: https://news.askclass.com
81
+ homepage: https://acn.askclass.com
83
82
  licenses:
84
83
  - MPL-2.0
85
84
  metadata: {}
@@ -1,36 +0,0 @@
1
- ---
2
- layout: post
3
- title: "The Academy"
4
- category: Plato
5
- color: c1
6
- tags: philosopy bio
7
- image: "https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Anselm_Feuerbach_-_Das_Gastmahl._Nach_Platon_%28zweite_Fassung%29_-_Google_Art_Project.jpg/1280px-Anselm_Feuerbach_-_Das_Gastmahl._Nach_Platon_%28zweite_Fassung%29_-_Google_Art_Project.jpg"
8
- source: "Columbia University Press"
9
- source_url: http://www.columbia.edu/itc/lithum/wong/plato.html
10
- ---
11
-
12
- Plato, a Greek philosopher who lived for a time at the Syracuse court. Founded the Academy (c.387<sub>B.C.</sub>) in Athens, the most influential and important learning instituion where he taught until his death in 347<sub>B.C.</sub>. A pupil and friend of Socrates, and taught one of the greatest philosopher, Aristotle.
13
- <!--more-->
14
-
15
- Plato produced 35 dialogues and 13 letters including:
16
-
17
- - Early (Socratic dialogues):
18
- - The Apology
19
- - Meno
20
- - Gorgias
21
-
22
- - Middle dialogues:
23
- - The Republic
24
- - Phaedo
25
- - Symposium
26
- - Timaeus
27
-
28
- - Later dialogues:
29
- - The Laws
30
- - Parmenides
31
-
32
- In his magnum opus, <cite>The Republic</cite> Plato argues for the philosopher-king as best kind of ruler;
33
- only a philosopher "understands the harmony of all parts of the universe with the Idea of the Good,"
34
- and therefore, "is capable of ruling the just state."
35
-
36
- > Virtue consists in the harmony of the human soul with the universe of Ideas, which assure order, intelligence, and pattern to a world in constant flux. Supreme among them is the Idea of the Good, analogous to the sun in the physical world.
@@ -1,8 +0,0 @@
1
- ---
2
- layout: writer
3
- size: 100
4
- style: center
5
- image: "https://upload.wikimedia.org/wikipedia/commons/thumb/8/88/Plato_Silanion_Musei_Capitolini_MC1377.jpg/800px-Plato_Silanion_Musei_Capitolini_MC1377.jpg"
6
- ---
7
-
8
- Ancient Greek philosopher Plato was a student of Socrates and a teacher of Aristotle. His writings explored justice, beauty and equality, and also contained discussions in aesthetics, political philosophy, theology, cosmology, epistemology and the philosophy of language. Plato founded the Academy in Athens, one of the first institutions of higher learning in the Western world.