askclass-news-theme 0.4.1 → 0.4.2

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: 6d7830fe82c5503855f63df33da81a394ce42329531f1ae8ff1e1a88d67115bf
4
- data.tar.gz: 9d03f151b323a60f8c723020871e77db4221bc584ec6a1bd3936d07eaa1e220c
3
+ metadata.gz: ea2d50e15e02b83afc318974b71d6a5641c816d686bb47dc84db630ab3fb8cea
4
+ data.tar.gz: eafbe510f5dc6dc298111942e419c54b16bed33a315c56fa22dbbfe5925d6dc4
5
5
  SHA512:
6
- metadata.gz: ec59b713992f9ec64e3a317e7b4e7810dada70c67a546d03e54f7245359cfacc1582b15e291cfad5cfe80a863c2e57e566ef15e0cc5e13c2cce2413679e4308f
7
- data.tar.gz: d3685d1c4e43aab14d671c725348bd1a2ed21e44ddcfab035b05fcd30617f21640ce669f55cd1737864225c2bcd9f865f1efe078f15391ff6eec88f1047b35e7
6
+ metadata.gz: 7db0f6b3d5b38789ea9cbb6e69ff42276ccc683b05241984a3e5f8d2f621096db2ba70beac84a508eb2713c332d9f0c7d9a5e0f514e4fc98ddea6771f2560fda
7
+ data.tar.gz: 34ecfb00cdd09fed9a2561b70416c9cc9750bf26f6bd55bb5cc07138ca1ac9cf4cd8d05099ba5236ed4b98b622d57eed3fa808194e546399af65b41f708f067d
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>
@@ -12,14 +12,18 @@
12
12
  {%- break -%}
13
13
  {%- endfor -%}
14
14
 
15
- {% include logo.html image=site.acn.logo.alt_image size=site.acn.logo.alt_size title=tag -%}
15
+ {% include logo.html image=site.acn.logo.alt_image size=site.acn.logo.alt_size title=tag href='/hashtags' -%}
16
16
  {%- if posts.size -%}
17
17
  {% include grid.html posts=posts %}
18
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 -%}
19
23
  <article class="tiles">
20
24
  <ul>
21
- {%- for t in site.tags -%}
22
- <li><a href="/hashtags/{{ t[0] }}">{{ t[0] }}<sup>{{ t[1].size }}</sup></a></li>
25
+ {%- for item in tags_list -%}
26
+ <li><a href="/hashtags/{{ item }}">{{ item }}<sup>{{ site.tags[item].size }}</sup></a></li>
23
27
  {%- endfor -%}
24
28
  </ul>
25
29
  </article>
@@ -27,5 +31,3 @@
27
31
  {%- include footer.html %}
28
32
  </body>
29
33
  </html>
30
-
31
-
data/_sass/_default.scss CHANGED
@@ -195,13 +195,20 @@ article.tiles {
195
195
  grid-gap: 1rem;
196
196
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
197
197
  li {
198
- padding: 10px;
198
+ padding: 5px;
199
199
  margin: 5px;
200
200
  border-radius: 5px;
201
201
  text-align: center;
202
- background-color: $secondaryColor;
202
+ background-color: $themeColor;
203
+ height: 60px;
204
+ display: flex;
205
+ align-items: center;
206
+ justify-content: center;
203
207
  a {
204
208
  color: $bgColor;
209
+ overflow: hidden;
210
+ text-overflow: ellipsis;
211
+ word-break: break-word;
205
212
  }
206
213
  sup {
207
214
  vertical-align: 3px;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: askclass-news-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AskClass