no-style-please2 0.5.2 → 0.5.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: 50265dc5887dbce77e697614df742ab5e5f58edf9db5a2a1cae47b8af40f6b79
4
- data.tar.gz: fa1561da1295e1ec5d20127f5838304870e1649eb35498cb2075a28dee39db64
3
+ metadata.gz: 2461eca97e61c3f33512d5dac781ee5136f3d56fec9a7a6dd6231de205a5f6c3
4
+ data.tar.gz: 64cca40402fa13421ad158a8db0d1fe3025096e7afe6e2e7c890ff735d6c31eb
5
5
  SHA512:
6
- metadata.gz: e9c76ebe93fa850438814503dad66f2d503ca77c29fa49044f11b7f29e7eda503d9008464de6bb40ad5dbf1ca94cc9ea0aae9358d668b2a4ee0c78faac6d2c3a
7
- data.tar.gz: fb7c803793081f6ab2ee4824035cf3b0d5b023eea3aef3475f59bcc3fe84939eae6fb9de5187d6fbebaac3782af015a41278d09e52c95a10e361541c35213fe6
6
+ metadata.gz: 5a03bf0b15b4c0ea7df4f3e8873d7761efd6060978114ba865afe57af65ed6bdb2c279148c35d1b8e7ecf1f0e221ecdf279dee3e7772a205ab4952a728b9b27a
7
+ data.tar.gz: 4afe8a137187b62c5cc3d4bd47b3d147169c3d51a32b4227d268ca1f126ddb1b8dfd5b5e756915a3128cb8798360a0e62c779c7ae423deba80ab7d7435819878
data/_config.yml CHANGED
@@ -21,7 +21,10 @@ theme_config:
21
21
  encrypt_clear_btn: "清空缓存密码"
22
22
  decrypt_btn: 解密
23
23
  encrypt_btn: 重新加密
24
- encrypt_clear_btn: 清空密码缓存
24
+ tag_showall: true
25
+ all_tags_path: tags
26
+ all_tags_title: All Tags
27
+
25
28
  #
26
29
  # forbid_cache_password: true
27
30
 
@@ -5,6 +5,7 @@
5
5
  <input style="width:100%; " type="password" id="passwordinput" placeholder="输入密码"></input>
6
6
  <p>
7
7
  <input type="button" value= "{{ site.theme_config.decrypt_btn | default : 'Decrypt' }}" id="DecryptBtn"/>
8
+ <input type="button" value= "{{ site.theme_config.encrypt_clear_btn | default: 'Clear password cache' }}" id="ClearBtn1"/>
8
9
 
9
10
  </div>
10
11
 
@@ -14,7 +15,7 @@
14
15
 
15
16
  <input type="button" value= "{{ site.theme_config.encrypt_btn | default: 'Encrypt' }}" id="EncryptBtn"/>
16
17
 
17
- <input type="button" value= "{{ site.theme_config.encrypt_clear_btn | default: 'Clear password cache' }}" id="ClearBtn"/>
18
+ <input type="button" value= "{{ site.theme_config.encrypt_clear_btn | default: 'Clear password cache' }}" id="ClearBtn2"/>
18
19
 
19
20
  </div>
20
21
  <div id = 'decryptContent'>
@@ -94,7 +95,10 @@
94
95
  clearKey()
95
96
  }
96
97
 
97
- document.getElementById("ClearBtn").onclick = function(){
98
+ document.getElementById("ClearBtn1").onclick = function(){
99
+ localStorage.clear();
100
+ }
101
+ document.getElementById("ClearBtn2").onclick = function(){
98
102
  localStorage.clear();
99
103
  }
100
104
 
@@ -3,13 +3,22 @@ layout: default
3
3
  ---
4
4
  {%-include back_link.html -%}
5
5
  <div class="post">
6
- <h1>Tag: {{ page.tag }}</h1>
6
+ <h1></h1>
7
+ <li>Tag: {{ page.tag }}</li>
8
+
7
9
  <ul>
8
- {% for post in site.tags[page.tag] %}
10
+ {% for post in site.tags[page.tag] %}
9
11
  <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }})<br>
10
12
  {{ post.description }}
11
13
  </li>
12
14
  {% endfor %}
13
15
  </ul>
14
16
  </div>
15
- <hr>
17
+ {% if site.theme_config.tag_showall %}
18
+ <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
+ </li>
20
+
21
+ {% endif %}
22
+
23
+ <hr>
24
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no-style-please2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock