no-style-please2 0.6.1 → 0.6.3

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: d0c99df39b0e743327415cec4366cbaf21a7c52a5fc2b67040e443ed92fbe8df
4
- data.tar.gz: 9ee3f4e378217b7683fecf0fbe640bdf8353ca409f5868659d697ad3c6b6a018
3
+ metadata.gz: fa8226cf58f6c533381fd1bcffd79481fdb8cf1bfa49465ef9ae9244d2007fc1
4
+ data.tar.gz: 69fecda2ef047fe95500fc9ee0e2e73fece71a3b027a3097a79ab5e05d42a583
5
5
  SHA512:
6
- metadata.gz: ea652495e5857f22c787f91c2166e16642d9db4831b8251243c618e58193adefa17d91cf8d02067757ad560e667320c136c6c32d81ec6065e04a9b8537f51937
7
- data.tar.gz: f3fff925aab0aa75bd082bb6dce24a5ac12f6d65f85080a310a3e8359e89ee702aeee2d21b17db145f44332aac8e2366462d1dde66825ca7d24eac3a1e02a8ce
6
+ metadata.gz: 59c344eb30f5eb30d48ef31f8374733d481bb3938564ef54d3b3531ee711aa5fcd5a17f9132ba7f8a0c9efd5a5a84c2578aca0546aac0258ce6a87bd816fdb45
7
+ data.tar.gz: 3b43362ba6735a2bc3c8cb65b3bc2cf444088fbdbbfc9c01d93376b876e3b65f1f8fd9352345cc7b79f0e6680d06cb570697394cc53c04f1a70649079dde2578
data/_config.yml CHANGED
@@ -26,6 +26,7 @@ theme_config:
26
26
  all_tags_title: All Tags
27
27
  archive_date_format: "%Y-%m"
28
28
  archive_title_date_format: "%m-%d"
29
+ tags_layout_style: 'flat' # flat auto list
29
30
 
30
31
  #
31
32
  # forbid_cache_password: true
@@ -17,7 +17,7 @@ layout: default
17
17
  {%- for post in posts limit: include.limit -%}
18
18
  {% capture ymCur %} {{post.date | date: archive_date_format}} {% endcapture %}
19
19
  {% if ymCur != ymPre %}
20
- {{ymCur}}
20
+ <h3>{{ymCur}}</h3>
21
21
  {% endif %}
22
22
  {% assign ymPre = ymCur %}
23
23
 
@@ -2,9 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
  {%-include back_link.html -%}
5
- <div class="post">
6
- <h1></h1>
7
- <li>Tag: {{ page.tag }}</li>
5
+ <ariticle>
6
+ <h1>Tag: {{ page.tag }}</h1>
8
7
 
9
8
  <ul>
10
9
  {% for post in site.tags[page.tag] %}
@@ -12,13 +11,15 @@ layout: default
12
11
  {{ post.description }}
13
12
  </li>
14
13
  {% endfor %}
15
- </ul>
16
- </div>
14
+
17
15
  {% if site.theme_config.tag_showall %}
18
16
  <li><a href="{{ site.baseurl }}/{{site.theme_config.all_tags_path | default:'tags' }}.html"> {{site.theme_config.all_tags_title | default:'All Tags' }}</a>
19
17
  </li>
20
-
21
18
  {% endif %}
19
+ </ul>
22
20
 
23
21
  <hr>
22
+
23
+
24
+ </ariticle>
24
25
 
data/_layouts/tags.html CHANGED
@@ -5,12 +5,44 @@ layout: default
5
5
  <div class="post">
6
6
  <h1>{{page.title}}</h1>
7
7
  <article>
8
+ {% assign layouttype = site.theme_config.tags_layout_style | default: "auto" %}
8
9
 
9
- {% for item in site.tags %}
10
- <lu>
11
- <a href ="{{ site['baseurl']}}/tags/{{ item[0]}}.html" ><text>{{ item[0]}}</text></a> &nbsp;
12
- </lu>
13
- {% endfor %}
10
+ {% if layouttype == 'auto' %}
11
+ {% if site.tags.size > 20 %}
12
+ {% assign layouttype = 'flat' %}
13
+ {% else %}
14
+ {% assign layouttype = 'list' %}
15
+ {% endif %}
16
+ {% endif %}
17
+ {% if layouttype == 'flat' %}
18
+ {% assign counter = 0 %}
19
+ {% for item in site.tags %}
20
+
21
+ {% assign counter2 = counter | modulo: 4 %}
22
+ {% if counter2 == 3 %}
23
+ <p>
24
+ {% endif %}
25
+ {% capture counter %}{% increment counter %} {% endcapture %}
26
+
27
+
28
+ <text><a href ="{{'/tags'|relative_url}}/{{ item[0]}}.html" >{{ item[0]}}</a></text> &nbsp; &nbsp;
29
+
30
+ {% endfor %}
31
+ {% else %}
32
+ <ul>
33
+ {% for item in site.tags %}
34
+ <li>
35
+ <text><a href ="{{ site['baseurl']}}/tags/{{ item[0]}}.html" >{{ item[0]}}</a></text> &nbsp;
36
+ </li>
37
+ {% endfor %}
38
+ </ul>
39
+
40
+ {% endif %}
41
+
42
+
43
+
44
+
45
+
14
46
 
15
47
  </article>
16
48
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no-style-please2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-18 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll