jekyll-zeta 0.11.6 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d74718450317b9e8811135bc522489d4fda178e75a7e0fe4c88c06819896aaaa
4
- data.tar.gz: 3c49716c5c1821cacb83e5b1c27f00f55936c5252a7f8ab67a76eb1fb676ea76
3
+ metadata.gz: a4267512a488e4d11852bf17d8133fc69d7d6a0a2bd28530e4fa8a12cfe5fc6c
4
+ data.tar.gz: 5f0a8045c31a172354f89e584249f659e81324fb96196fed0879ada30227a892
5
5
  SHA512:
6
- metadata.gz: dcd4cb649b2d4b660d3305188090486935f1d57249755fb6458a60c617cd3a7982b5428af63a3bf5b81f666c8fc98843022ac1862d633f908d741d5f56b7d856
7
- data.tar.gz: 7a8392b077fd2fdea637534b64e22f1b97b937e9ed57cc831a0402aa2e205508248edc31b9ac1bc338218678ed58cac54e05e8de0910d58a37916d4c14461669
6
+ metadata.gz: 3e769792eb31c3fac7cb6333cbd9988f3ff5df3e77099ba03c26b0b2245845284ba8d09d24c6e239d6ad00abfe6f97cd0083a12366a5f5759d463113ecb6b8d5
7
+ data.tar.gz: 5cc5ef2b6e7d91e3f5a419bcb37ccc73cea85a57467b8338b2307769a56ab9b43bb92ac6e91e31e50533ecec02c5638ed1836f299110b0c29b2798c20ce90c98
data/README.md CHANGED
@@ -12,9 +12,17 @@
12
12
  + encrytion support. Only those who know the password can view the article
13
13
 
14
14
  **IMPORTANT NOTE**
15
- ONLY textual contents of article will be encrypted ,the pictures will **NOT** be encrypted
15
+ ~~ONLY textual contents of article will be encrypted ,the pictures will **NOT** be encrypted~~
16
16
 
17
-
17
+ **image will be encrypt by using asset_img tag `v0.11.6`**
18
+ > name your sensitive img as name.sec.png
19
+ > add exclude config
20
+
21
+ ```
22
+ exclude:
23
+ - "**/*.sec.*"
24
+ - - "*.sec.*"
25
+ ```
18
26
  #### how to encrypt your post
19
27
  1. generate your own public & private key to protect your password
20
28
  ```
@@ -26,7 +34,7 @@ publickey: AAA
26
34
  privatekey: BBBBB
27
35
  ```
28
36
 
29
- 2. encrypt your password
37
+ 1. encrypt your password
30
38
 
31
39
 
32
40
  ``` bash
data/_config.yml CHANGED
@@ -62,6 +62,9 @@ permalink: "/post/:year/:month/:day/:title:output_ext"
62
62
 
63
63
  paginate: 13
64
64
  paginate_path: "/pages/p:num/"
65
+ exclude:
66
+ - "**/*.sec.*"
67
+ - "*.sec.*"
65
68
 
66
69
  plugins:
67
70
  - no-style-please2-plugins
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*********** getmapdata.js [5faaaf3558] ***********/
3
+ /*********** getmapdata.js [1b9ff48346] ***********/
4
4
 
5
5
  !function(){var t=100;function e(t){const e=t.split("-").map(Number);if(3!==e.length)throw new Error(`Invalid date format: ${t}`);const[n,r,l]=e;return new Date(n,r-1,l)}function n(t,e){if(t){const n=t.split("-")
6
6
  ;if(3==n.length)return`${n[0]}-${n[1].padStart(2,"0")}-${n[2].padStart(2,"0")}`;if(2==n.length)return`${e}-${n[0].padStart(2,"0")}-${n[1].padStart(2,"0")}`}return t}function r(t){let e=t.getMonth()+1,n=t.getDate()
@@ -9,11 +9,11 @@
9
9
  ;t&&!isNaN(t)&&(c=Math.floor((t.getTime()-f.getTime())/864e5)+1)}else c=Math.floor((Date.now()-f.getTime())/864e5)+1,c>7&&(c=7);const d=u.slice(1).join(" ");let g=[];const p=f.getTime();for(let t=0;t<c;t++){
10
10
  const e=l(r(new Date(p+864e5*t))+" "+d,null,a);e&&g.push(e)}return g.length?g:null}let f="";if(!s)return null;{let t=s.split("-"),e=0,n=0,r=0;if(a&&2==t.length)e=a,n=t[0],r=t[1];else{if(3!=t.length)return;e=t[0],n=t[1],r=t[2]}
11
11
  let l=Number(e),i=Number(n),o=Number(n);if(isNaN(l)||isNaN(o)||isNaN(i)||l<1900||l>2100||i<1||i>12||o<1||o>31)return null;f=e+"-"+n.padStart(2,"0")+"-"+r.padStart(2,"0")}if(!f)return null;var c="";let d;if(u.length>1){c=u.slice(1).join(" ")
12
- ;const t=/#[0-9a-fA-F]{6}/;let e=t.exec(c);e&&e.length&&(d=e[0],c=c.replace(t,""))}return{date:f,title:c,color:d}}function i(t,e){if(!e)return;let n=e.date.substring(0,4),r=e.date.substring(5,7),l=t.allYear[n];t.allYear[n]=l?l+1:1;let i=t[n]
13
- ;i||(i={},t[n]=i);let a=i[r];a||(a=[],i[r]=a),a.push(e)}function a(e,n){let r={},a={allYear:r},o=0,u=new Date,s=`${u.getFullYear()-1}-${(u.getMonth()+1).toString().padStart(2,"0")}-${u.getDate().toString().padStart(2,"0")}`,f=null
14
- ;if(e.split("\n").forEach((function(t,e){if(0==e)return;let n=l(t,a,f);n&&Array.isArray(n)?n.forEach((t=>{i(a,t),t&&(f=t.date.substring(0,4),t.date>=s&&o++)})):(i(a,n),n&&(f=n.date.substring(0,4),n.date>=s&&o++))})),a.title){
15
- let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",n.parentNode.insertBefore(t,n)}let c=Object.keys(r).sort().reverse(),d=a.recent,g=!0;g=d?"1"==d:o&&c.length>1,
16
- g&&create_heatmap_lv("lmpRecent365"+t++,"",a,"Last 1Y",o,n);for(let e=0;e<c.length;e++){let r=c[e];create_heatmap_lv("lmp"+r+t++,r,a,void 0,void 0,n)}n.style.display="none"}async function o(){let t=document.querySelectorAll("pre > code")
17
- ;if(t&&0!=t.length&&t.length>0)for(let n=0;n<t.length;n++){const r=t[n];var e=r.textContent;if(!e.startsWith("#mapdata"))return;a(e,r.parentNode.parentNode.parentNode)}}o(),window._after_dec_fun=function(){
18
- let t=document.getElementById("loveiContainer");if(!t){let e=document.getElementById("decryptContent");if(!e)return;t=document.createElement("div"),t.id="loveiContainer",e.insertBefore(t,e.firstChild)}o()},window._after_enc_fun=function(){
19
- document.getElementById("loveiContainer").innerHTML=""}}();
12
+ ;const t=/#[0-9a-fA-F]{6}/;let e=t.exec(c);e&&e.length?(d=e[0],c=c.replace(t,"")):d=i&&i.color||"#40c463"}return{date:f,title:c,color:d}}function i(t,e){if(!e)return;let n=e.date.substring(0,4),r=e.date.substring(5,7),l=t.allYear[n]
13
+ ;t.allYear[n]=l?l+1:1;let i=t[n];i||(i={},t[n]=i);let a=i[r];a||(a=[],i[r]=a),a.push(e)}function a(e,n){let r={},a={allYear:r
14
+ },o=0,u=new Date,s=`${u.getFullYear()-1}-${(u.getMonth()+1).toString().padStart(2,"0")}-${u.getDate().toString().padStart(2,"0")}`,f=null;if(e.split("\n").forEach((function(t,e){if(0==e)return;let n=l(t,a,f);n&&Array.isArray(n)?n.forEach((t=>{i(a,t),
15
+ t&&(f=t.date.substring(0,4),t.date>=s&&o++)})):(i(a,n),n&&(f=n.date.substring(0,4),n.date>=s&&o++))})),a.title){let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",n.parentNode.insertBefore(t,n)}
16
+ let c=Object.keys(r).sort().reverse(),d=a.recent,g=!0;g=d?"1"==d:o&&c.length>1,g&&create_heatmap_lv("lmpRecent365"+t++,"",a,"Last 1Y",o,n);for(let e=0;e<c.length;e++){let r=c[e];create_heatmap_lv("lmp"+r+t++,r,a,void 0,void 0,n)}
17
+ n.style.display="none"}async function o(){let t=document.querySelectorAll("pre > code");if(t&&0!=t.length&&t.length>0)for(let n=0;n<t.length;n++){const r=t[n];var e=r.textContent;if(!e.startsWith("#mapdata"))return
18
+ ;a(e,r.parentNode.parentNode.parentNode)}}o(),window._after_dec_fun=function(){let t=document.getElementById("loveiContainer");if(!t){let e=document.getElementById("decryptContent");if(!e)return;t=document.createElement("div"),t.id="loveiContainer",
19
+ e.insertBefore(t,e.firstChild)}o()},window._after_enc_fun=function(){document.getElementById("loveiContainer").innerHTML=""}}();
@@ -146,6 +146,9 @@
146
146
  color = colorScaned[0]
147
147
  title = title.replace(regColor,'')
148
148
  }
149
+ else{
150
+ color = (gData && gData.color )|| '#40c463'
151
+ }
149
152
 
150
153
  }
151
154
  return { date: date, title: title ,color}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-zeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.6
4
+ version: 0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-13 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll