no-style-please2 0.6.2.1 → 0.6.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +6 -4
- data/_layouts/tags.html +35 -6
- data/_sass/no-style-please.scss +5 -0
- 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: 6918d9e8fa3339aa1dce49fc2f96fa13bbb449b23dfeb44fed32956166f4b55f
|
4
|
+
data.tar.gz: 484534eaae7bd974a46059cb85d43d609f58e5ef79dd67c40ce87c5dbcf429e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42e865cb17fcd72438c90a6f97eeef46b20fd91a6a03053d6e2cfbf832ee31f0b73511ae8704355a685ec8158f27b41d9f8f394a7f4b308c316631cb422bf2be
|
7
|
+
data.tar.gz: e776bfe44681ef6fe01681600abefad69fa42491cf05bf82dadcf8634e8053dd06374d62a37fbbe47fe2353fe42913174cd47bcf4256f3883369bc7618a1bd4d
|
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
|
@@ -34,6 +35,7 @@ theme_config:
|
|
34
35
|
|
35
36
|
sass:
|
36
37
|
style: :compressed
|
38
|
+
sourcemap: "never"
|
37
39
|
|
38
40
|
plugins:
|
39
41
|
- no-style-please2-plugins
|
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>
|
data/_sass/no-style-please.scss
CHANGED
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.2
|
4
|
+
version: 0.6.3.2
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|