no-style-please2 0.6.2.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +1 -0
- data/_layouts/tags.html +35 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa8226cf58f6c533381fd1bcffd79481fdb8cf1bfa49465ef9ae9244d2007fc1
|
4
|
+
data.tar.gz: 69fecda2ef047fe95500fc9ee0e2e73fece71a3b027a3097a79ab5e05d42a583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c344eb30f5eb30d48ef31f8374733d481bb3938564ef54d3b3531ee711aa5fcd5a17f9132ba7f8a0c9efd5a5a84c2578aca0546aac0258ce6a87bd816fdb45
|
7
|
+
data.tar.gz: 3b43362ba6735a2bc3c8cb65b3bc2cf444088fbdbbfc9c01d93376b876e3b65f1f8fd9352345cc7b79f0e6680d06cb570697394cc53c04f1a70649079dde2578
|
data/_config.yml
CHANGED
data/_layouts/tags.html
CHANGED
@@ -5,15 +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
|
|
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>
|
29
|
+
|
30
|
+
{% endfor %}
|
31
|
+
{% else %}
|
9
32
|
<ul>
|
33
|
+
{% for item in site.tags %}
|
34
|
+
<li>
|
35
|
+
<text><a href ="{{ site['baseurl']}}/tags/{{ item[0]}}.html" >{{ item[0]}}</a></text>
|
36
|
+
</li>
|
37
|
+
{% endfor %}
|
38
|
+
</ul>
|
39
|
+
|
40
|
+
{% endif %}
|
41
|
+
|
10
42
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
</li>
|
15
|
-
{% endfor %}
|
16
|
-
<ul>
|
43
|
+
|
44
|
+
|
45
|
+
|
17
46
|
|
18
47
|
</article>
|
19
48
|
</div>
|