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 +4 -4
- data/README.md +11 -3
- data/_config.yml +3 -0
- data/_includes/getmapdata.js +9 -9
- data/_includes/js_source/getmapdata.js +3 -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: a4267512a488e4d11852bf17d8133fc69d7d6a0a2bd28530e4fa8a12cfe5fc6c
|
4
|
+
data.tar.gz: 5f0a8045c31a172354f89e584249f659e81324fb96196fed0879ada30227a892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
37
|
+
1. encrypt your password
|
30
38
|
|
31
39
|
|
32
40
|
``` bash
|
data/_config.yml
CHANGED
data/_includes/getmapdata.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*********** getmapdata.js [
|
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
|
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
|
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),
|
15
|
-
let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",n.parentNode.insertBefore(t,n)}
|
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)}
|
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
|
18
|
-
let t=document.getElementById("loveiContainer");if(!t){let e=document.getElementById("decryptContent");if(!e)return;t=document.createElement("div"),t.id="loveiContainer",
|
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=""}}();
|
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.
|
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-
|
11
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|