no-style-please2 0.6.2 → 0.6.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +5 -4
- data/_layouts/archive.html +1 -1
- data/_layouts/tagpage.html +7 -6
- data/_layouts/tags.html +37 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccf482614ed20e78705eab2a0040b63701297dce3c375241e621acc6a8baa33f
|
4
|
+
data.tar.gz: 6a412a45ba023b89e21143842fa93bb51fde5ca01fddce3f3d0bfedb8f0f4980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dd20a961cd7ef250d8cd22da60955f448da50770faf1ebf958693e54c13021c5313114d2fe0b66d96e56bad1bba939dd09271cbbe7a354a32a210b348338e60
|
7
|
+
data.tar.gz: 609b3efcf9902313f3e98d70320bacd71600c7468fa4506e439219a55128de52968a3ddb037874430a4c96c59a0a3ad9ecc77c93811d615c519b11e220b24c6f
|
data/_config.yml
CHANGED
@@ -18,14 +18,15 @@ theme_config:
|
|
18
18
|
date_format: "%Y-%m-%d" # customize how date is formatted
|
19
19
|
show_description: false # show blog description in home page
|
20
20
|
encrypt_title: "Content is Encryped :)"
|
21
|
-
encrypt_clear_btn: "清空缓存密码"
|
22
|
-
decrypt_btn: 解密
|
23
|
-
encrypt_btn: 重新加密
|
21
|
+
# encrypt_clear_btn: "清空缓存密码"
|
22
|
+
# decrypt_btn: 解密
|
23
|
+
# encrypt_btn: 重新加密
|
24
24
|
tag_showall: true
|
25
25
|
all_tags_path: tags
|
26
26
|
all_tags_title: All Tags
|
27
|
-
archive_date_format: "%Y
|
27
|
+
archive_date_format: "%Y"
|
28
28
|
archive_title_date_format: "%m-%d"
|
29
|
+
tags_layout_style: 'auto' # flat auto list
|
29
30
|
|
30
31
|
#
|
31
32
|
# forbid_cache_password: true
|
data/_layouts/archive.html
CHANGED
@@ -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
|
-
<
|
20
|
+
<h3>{{ymCur}}</h3>
|
21
21
|
{% endif %}
|
22
22
|
{% assign ymPre = ymCur %}
|
23
23
|
|
data/_layouts/tagpage.html
CHANGED
@@ -2,9 +2,8 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
{%-include back_link.html -%}
|
5
|
-
<
|
6
|
-
<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
|
-
|
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
|
-
{%
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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 %}
|
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
|
+
|
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.
|
4
|
+
version: 0.6.3.1
|
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-
|
11
|
+
date: 2022-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|