jekyll-zeta 0.9.2.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +2 -2
- data/_includes/heatmap.html +4 -7
- data/_includes/heatmap.js +10 -7
- data/_sass/heatmap.scss +3 -1
- 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: 1d4d3142d6ad3ca6ddc2f2d08b4d8cbf2f2ad9ce1a9b19d64fc56846d4f6f004
|
4
|
+
data.tar.gz: '097c90e559ec81e4a7be05a0205808964545f25fa9f30d737bc02d982314e280'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb98e6a641ecca04312fb953b6496d3c29377f2d82eae6bbedead1db3b807aeb622f87267094bb2361e50e1a3666c3d4ebf22f6bec2aa5b2e80b8c846747df7e
|
7
|
+
data.tar.gz: ee9da8835f8c70bf16e95336f9076d95ca58a233131072e04b2796ab795af9f55594645002c838a9409f1c7602c2618e1dd4c79a07151d6edeb07bb1df809d79
|
data/_config.yml
CHANGED
@@ -19,9 +19,9 @@ theme_config:
|
|
19
19
|
appearance: "auto" # can be "light", "dark" or "auto"
|
20
20
|
navbarPosition: left # left or top
|
21
21
|
date_format: "%m/%d" # customize how date is formatted
|
22
|
-
post_date_format: "%Y/%m/%d"
|
22
|
+
post_date_format: "%Y/%m/%d %a"
|
23
23
|
encrypt_title: "Content is Encryped :)"
|
24
|
-
# encrypt_clear_btn: "清空缓存密码"
|
24
|
+
# encrypt_clear_btn: "清空缓存密码"A
|
25
25
|
# decrypt_btn: 解密
|
26
26
|
# encrypt_btn: 重新加密
|
27
27
|
tag_showall: true
|
data/_includes/heatmap.html
CHANGED
@@ -29,16 +29,13 @@
|
|
29
29
|
|
30
30
|
{%- assign MothStr = site.theme_config.heatMapMonth -%}
|
31
31
|
{%- assign HeatMapShowWeek = site.theme_config.heatMapShowWeek -%}
|
32
|
-
|
33
|
-
{%- assign HeatMapType = site.theme_config.heatMapType -%}
|
34
|
-
|
35
32
|
{%- assign heatMapLoadCount = site.theme_config.heatMapLoadCount | default: 8 -%}
|
36
33
|
|
34
|
+
const WeeKStartStr = "{{ site.theme_config.heatMapWeekStart | default: 0 }}" ;// 0 sunday 1 monday 2. tuesday ...
|
37
35
|
|
38
|
-
const heatMapLoadCount = {{heatMapLoadCount}}
|
39
|
-
var
|
40
|
-
var
|
41
|
-
var _showWeek = '{{ HeatMapShowWeek | default: "Mon Wed Fri" }}';
|
36
|
+
const heatMapLoadCount = {{heatMapLoadCount}};
|
37
|
+
var _MonthStr = '{{ MothnStr | default: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec" }}';
|
38
|
+
var _showWeek = '{{ HeatMapShowWeek | default: "Sun Mon Tue Wed Thu Fri Sat" }}';
|
42
39
|
var _allyearurl = '{{ "assets/dyn/allyear.json" | relative_url }}';
|
43
40
|
{% include heatmap.js %}
|
44
41
|
}
|
data/_includes/heatmap.js
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
;!(function () {
|
2
|
+
|
3
|
+
const WeeKStart = parseInt(WeeKStartStr)
|
4
|
+
|
2
5
|
|
3
6
|
var GDATA = window._G_DATA;
|
4
7
|
if (!GDATA) {
|
@@ -22,9 +25,10 @@
|
|
22
25
|
arr.pop();
|
23
26
|
const jsonUrlBase = arr.join("/");
|
24
27
|
|
28
|
+
const nLastColumnCount = (dateEnd.getDay() - WeeKStart + 7) % 7 + 1
|
25
29
|
const ColumnsCount = 53;
|
26
30
|
const RowCount = 7;
|
27
|
-
const DayCount = (ColumnsCount - 1) * RowCount +
|
31
|
+
const DayCount = (ColumnsCount - 1) * RowCount + nLastColumnCount;
|
28
32
|
|
29
33
|
let queue = window._y_queue || []
|
30
34
|
window._y_queue = queue;
|
@@ -301,7 +305,7 @@
|
|
301
305
|
const monthStr = _MonthStr.split(" ");
|
302
306
|
|
303
307
|
let nowM = dateEnd.getMonth();
|
304
|
-
let
|
308
|
+
let nowWeekIdx = nLastColumnCount - 1;
|
305
309
|
|
306
310
|
for (let i = 0; i < monthStr.length; i++) {
|
307
311
|
let m = document.createElement("span");
|
@@ -315,9 +319,10 @@
|
|
315
319
|
const WeekStr = _showWeek.split(" ");
|
316
320
|
|
317
321
|
for (let i = 0; i < WeekStr.length; i++) {
|
322
|
+
const idx = (i + WeeKStart) % 7
|
318
323
|
let m = document.createElement("div");
|
319
324
|
m.className = "heatmap-week-cell";
|
320
|
-
m.innerHTML = `<span>${WeekStr[
|
325
|
+
m.innerHTML = i % 2 ? `<span>${WeekStr[idx]}</span>` : ''
|
321
326
|
weekEle.appendChild(m);
|
322
327
|
}
|
323
328
|
|
@@ -328,13 +333,11 @@
|
|
328
333
|
dayEle.className = "heatmap-day";
|
329
334
|
dayEle.id = dayEleId;
|
330
335
|
|
331
|
-
|
332
|
-
|
333
|
-
// console.log(nowWeek, firstDateDayDiff);
|
336
|
+
// console.log(nowWeekIdx, firstDateDayDiff);
|
334
337
|
|
335
338
|
for (let c = 0; c < ColumnsCount; c++) {
|
336
339
|
for (let r = 0; r < RowCount; r++) {
|
337
|
-
if (r >
|
340
|
+
if (r > nowWeekIdx && c == ColumnsCount - 1) {
|
338
341
|
break;
|
339
342
|
}
|
340
343
|
|
data/_sass/heatmap.scss
CHANGED
@@ -65,7 +65,9 @@ $heatFont:Georgia,"Nimbus Roman No9 L","Songti SC",STSong,"AR PL New Sung","AR P
|
|
65
65
|
justify-content: center;
|
66
66
|
padding-right: 0.2em;
|
67
67
|
font-size: 0.8rem;
|
68
|
-
font-family: $heatFont
|
68
|
+
font-family: $heatFont;
|
69
|
+
line-height: $hmbloksizeH;
|
70
|
+
height: $hmbloksizeH;
|
69
71
|
}
|
70
72
|
|
71
73
|
.heatmap-day{
|
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.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|