no-style-please2 0.6.3.1 → 0.7.0

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: ccf482614ed20e78705eab2a0040b63701297dce3c375241e621acc6a8baa33f
4
- data.tar.gz: 6a412a45ba023b89e21143842fa93bb51fde5ca01fddce3f3d0bfedb8f0f4980
3
+ metadata.gz: 5e95a4a91f6613fff961b42de602960f4abb8f75788928f136ba7f770bf58aa2
4
+ data.tar.gz: e6e43f6882a428283e70ef4968eedcd45468dd28df2592f0e0ad6a4116b412a0
5
5
  SHA512:
6
- metadata.gz: 8dd20a961cd7ef250d8cd22da60955f448da50770faf1ebf958693e54c13021c5313114d2fe0b66d96e56bad1bba939dd09271cbbe7a354a32a210b348338e60
7
- data.tar.gz: 609b3efcf9902313f3e98d70320bacd71600c7468fa4506e439219a55128de52968a3ddb037874430a4c96c59a0a3ad9ecc77c93811d615c519b11e220b24c6f
6
+ metadata.gz: c3303d70b4e21d536df3a2706460737b005be5f91165e76467ad996dc765dad3f5fc88b977f1174a11651912161ee4e76fbbd555c78fe2b0d50a71472b1b1d8a
7
+ data.tar.gz: e21677259b350605bc94ed37219812423727b229ad6b9173074138b5ed7b34aeeb623f197a1d605c4bb794de8dff25d6db4ab5d620ec052fb2fae77c19d048bc
data/_config.yml CHANGED
@@ -35,6 +35,7 @@ theme_config:
35
35
 
36
36
  sass:
37
37
  style: :compressed
38
+ sourcemap: "never"
38
39
 
39
40
  plugins:
40
41
  - no-style-please2-plugins
@@ -26,12 +26,9 @@
26
26
  <script src="//cdn.jsdelivr.net/gh/vitock/jsdelivr@0.1.1/js/md5.js"></script>
27
27
  <script>
28
28
  !function(){
29
-
30
- {%- capture prefix0 %} {{page.url |default: "no-style-please2" }} {% endcapture -%}
31
- {%- capture prefix %} {{prefix0 | strip }} {% endcapture -%}
32
-
33
- const preFix = "{{prefix}}"
34
- var encryptedContent = '{{ content | contentEncrypt:page, prefix}}'
29
+ const preFix = '{{encid}}';
30
+ const encid = preFix
31
+ var encryptedContent = '{{ content | encrypt_content:page, encid}}'
35
32
  const nonceStr = encryptedContent.substring(0,16);
36
33
  const msg = encryptedContent.substring(17)
37
34
 
@@ -132,15 +129,15 @@
132
129
  }
133
130
  {% else %}
134
131
  function readKey(){
135
- var key = md5(location.pathname)
132
+ var key = encid;
136
133
  return localStorage.getItem(key)
137
134
  }
138
135
  function setKey(value){
139
- var key = md5(location.pathname)
136
+ var key = encid
140
137
  return localStorage.setItem(key,value)
141
138
  }
142
139
  function clearKey() {
143
- var key = md5(location.pathname)
140
+ var key = encid
144
141
  localStorage.removeItem(key)
145
142
  }
146
143
  var cachekey = readKey()
data/_layouts/post.html CHANGED
@@ -15,8 +15,8 @@ layout: default
15
15
  <a href="{{ site.baseurl }}/tags/{{ tag_name }}.html"><text><nobr>#{{ tag_name }}</nobr></text>&nbsp;</a>
16
16
  {% endfor %}</span>
17
17
 
18
- {%- capture enc %}{{ content | encrypt_if_need:page}}{% endcapture -%}
19
- {%- if enc == '' -%}
18
+ {%- capture encid %}{{ "" | get_encrypt_id:page}}{% endcapture -%}
19
+ {%- if encid == '' -%}
20
20
  {{ content }}
21
21
  {% else %}
22
22
  {%-include encrypted.html-%}
@@ -94,4 +94,9 @@ img {
94
94
  max-width: 100%;
95
95
  display: block;
96
96
  margin: 0 auto;
97
+ }
98
+
99
+ a{
100
+ text-decoration: none;
101
+ color: royalblue;
97
102
  }
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.3.1
4
+ version: 0.7.0
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-20 00:00:00.000000000 Z
11
+ date: 2022-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0
33
+ version: 0.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0
40
+ version: 0.4.0
41
41
  description:
42
42
  email:
43
43
  - r