jekyll-zeta 0.10.2 → 0.10.3.1
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/_includes/getmapdata.js +2 -2
- data/_includes/heatmap.html +8 -1
- data/_includes/lovemap_layout.html +133 -0
- data/_includes/post_entry.html +6 -0
- data/_includes/post_layout.html +21 -0
- data/_layouts/lovemap.html +1 -133
- data/_layouts/post.html +2 -20
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eecc7c3a2308d2205d041d179441e14e2167e81542788394916004fb2d26debc
|
4
|
+
data.tar.gz: a9ceec08ac7f53cdf45e616ea71c28f432efee2d6b54f8756c81ab788fcaa9c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d105051b9e802074c959b7f5f3016ccd6761580eeaed373ed21bc3351ed52f6f8a2672561f6c65d24181291fdf2e32a64e4d0daa015aaf5d4fd1b40fb7b69650
|
7
|
+
data.tar.gz: 385fcc45700aaf6fb44b39519f2229f0c6a8f04afcf29570e12920d635e1af919a55ae75c570e143ec52d5ee867de2bfa29a4d72002616456db4055cb84a0be0
|
data/_includes/getmapdata.js
CHANGED
@@ -225,12 +225,12 @@
|
|
225
225
|
showRct = RCT == '1'
|
226
226
|
}
|
227
227
|
if(showRct){
|
228
|
-
|
228
|
+
create_heatmap_lv('lmpRecent365' + g_id ++, '', dataObj, "Last 1Y", Recent365Count,node)
|
229
229
|
}
|
230
230
|
|
231
231
|
for (let i = 0; i < allYearArr.length; i++) {
|
232
232
|
let y = allYearArr[i]
|
233
|
-
|
233
|
+
create_heatmap_lv('lmp' + y + g_id ++ , y, dataObj,undefined,undefined,node)
|
234
234
|
}
|
235
235
|
|
236
236
|
node.style.display = 'none'
|
data/_includes/heatmap.html
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
|
2
|
+
{% comment %} keep this up empty line {% endcomment %}
|
3
|
+
|
1
4
|
<div>
|
2
5
|
{%- if include.collection -%}
|
3
6
|
{%- assign posts = include.collection -%}
|
@@ -32,7 +35,7 @@
|
|
32
35
|
|
33
36
|
|
34
37
|
/**************************************/
|
35
|
-
|
38
|
+
/***************Create Map***********************/
|
36
39
|
/**************************************/
|
37
40
|
|
38
41
|
|
@@ -60,6 +63,10 @@
|
|
60
63
|
const svgmap = createSVGMap(endYear)
|
61
64
|
|
62
65
|
let father = document.getElementById(heatmapid)
|
66
|
+
if (!father) {
|
67
|
+
console.error('no father')
|
68
|
+
return
|
69
|
+
}
|
63
70
|
father.appendChild(svgmap.svg);
|
64
71
|
|
65
72
|
const p = hm_getPostData(endYear,_allyearurl);
|
@@ -0,0 +1,133 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
{%- assign titlelen = page.title.size -%}
|
4
|
+
{%- if titlelen > 0 -%}
|
5
|
+
<h2>{{ page.title }}</h2>
|
6
|
+
{%- endif -%}
|
7
|
+
<time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time>
|
8
|
+
{%- for tag in page.tags -%}
|
9
|
+
{%- capture tag_name -%}{{ tag }}{%- endcapture -%}
|
10
|
+
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html" class="tag"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
11
|
+
{%- endfor -%}
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
<style>
|
18
|
+
.custom-map-title{
|
19
|
+
margin: 0;
|
20
|
+
font-size: 1.5em;
|
21
|
+
color: #444455;
|
22
|
+
}
|
23
|
+
|
24
|
+
.map-container{
|
25
|
+
padding-bottom: 4em;
|
26
|
+
}
|
27
|
+
.lv-year{
|
28
|
+
|
29
|
+
font-family: 'Courier New', Courier, monospace;
|
30
|
+
}
|
31
|
+
|
32
|
+
.lv-year-title{
|
33
|
+
font-weight: bold;
|
34
|
+
font-size: 1.5em;
|
35
|
+
display: inline-block;
|
36
|
+
color: #aaa;
|
37
|
+
|
38
|
+
}
|
39
|
+
.lv-year-count{
|
40
|
+
font-weight: bold;
|
41
|
+
display: inline-block;
|
42
|
+
font-size: 1.2em;
|
43
|
+
color: #aaa;
|
44
|
+
|
45
|
+
}
|
46
|
+
.lv-year-count::before{
|
47
|
+
content: "x";
|
48
|
+
margin-left: 1em;
|
49
|
+
margin-right: 0.2em;
|
50
|
+
font-weight: 400;
|
51
|
+
font-size: 1.5rem;
|
52
|
+
color: #aaa;
|
53
|
+
}
|
54
|
+
|
55
|
+
#loveiContainer{
|
56
|
+
margin-bottom: 2em;
|
57
|
+
}
|
58
|
+
|
59
|
+
</style>
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<script >
|
64
|
+
function create_heatmap_lv(heatmapid,endYear,dataObj,title,count,node){
|
65
|
+
|
66
|
+
|
67
|
+
{%- include getPostData.js -%}
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
{%- include heatmap_svg.js -%}
|
72
|
+
/*******************************/
|
73
|
+
/*******************************/
|
74
|
+
/*******************************/
|
75
|
+
|
76
|
+
|
77
|
+
let container = document.createElement('div')
|
78
|
+
container.className = 'map-container'
|
79
|
+
let divtitle = document.createElement('div')
|
80
|
+
divtitle.className = 'lv-year'
|
81
|
+
|
82
|
+
container.appendChild(divtitle)
|
83
|
+
let div = document.createElement('div')
|
84
|
+
div.className = 'heatmap'
|
85
|
+
div.id = heatmapid
|
86
|
+
|
87
|
+
container.appendChild(div)
|
88
|
+
node.parentNode.insertBefore(container,node)
|
89
|
+
|
90
|
+
if (!endYear) {
|
91
|
+
let now = new Date()
|
92
|
+
endYear = `${now.getFullYear()}-${(101 + now.getMonth()).toString().substring(1)}-${(100 + now.getDate()).toString().substring(1)}`
|
93
|
+
}else if(('' + endYear).length == 4 ){
|
94
|
+
endYear = '' + endYear + '-12-31'
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
const svgmap = createSVGMap(endYear,dataObj.beginDate)
|
99
|
+
container.appendChild(svgmap.svg);
|
100
|
+
svgmap.updateDays(dataObj)
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
</script>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<article>
|
111
|
+
|
112
|
+
|
113
|
+
{%- assign encid = "" | get_encrypt_id:page -%}
|
114
|
+
{%- if encid == '' -%}
|
115
|
+
<div id="loveiContainer">
|
116
|
+
|
117
|
+
<!-- <div class='heatmap' id="loveid"> -->
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
{{ content }}
|
122
|
+
{%- else -%}
|
123
|
+
{%-include encrypted.html-%}
|
124
|
+
{%- endif -%}
|
125
|
+
|
126
|
+
</article>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<script>
|
131
|
+
|
132
|
+
{%- include getmapdata.js %}
|
133
|
+
</script>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
{%- assign titlelen = page.title.size -%}
|
3
|
+
{%- if titlelen > 0 -%}
|
4
|
+
<h2>{{ page.title }}</h2>
|
5
|
+
{%- endif -%}
|
6
|
+
<time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time>
|
7
|
+
{%- for tag in page.tags -%}
|
8
|
+
{%- capture tag_name -%}{{ tag }}{%- endcapture -%}
|
9
|
+
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html" class="tag"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
10
|
+
{%- endfor -%}
|
11
|
+
|
12
|
+
<article>
|
13
|
+
{%- assign encid = "" | get_encrypt_id:page -%}
|
14
|
+
{%- if encid == '' -%}
|
15
|
+
{{ content }}
|
16
|
+
{%- else -%}
|
17
|
+
{%- include encrypted.html -%}
|
18
|
+
{%- endif -%}
|
19
|
+
|
20
|
+
|
21
|
+
</article>
|
data/_layouts/lovemap.html
CHANGED
@@ -2,136 +2,4 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{
|
6
|
-
{%- if titlelen > 0 -%}
|
7
|
-
<h2>{{ page.title }}</h2>
|
8
|
-
{%- endif -%}
|
9
|
-
<time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time>
|
10
|
-
{%- for tag in page.tags -%}
|
11
|
-
{%- capture tag_name -%}{{ tag }}{%- endcapture -%}
|
12
|
-
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html" class="tag"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
13
|
-
{%- endfor -%}
|
14
|
-
|
15
|
-
<br/>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<style>
|
20
|
-
.custom-map-title{
|
21
|
-
margin: 0;
|
22
|
-
font-size: 1.5em;
|
23
|
-
color: #444455;
|
24
|
-
}
|
25
|
-
|
26
|
-
.map-container{
|
27
|
-
padding-bottom: 4em;
|
28
|
-
}
|
29
|
-
.lv-year{
|
30
|
-
|
31
|
-
font-family: 'Courier New', Courier, monospace;
|
32
|
-
}
|
33
|
-
|
34
|
-
.lv-year-title{
|
35
|
-
font-weight: bold;
|
36
|
-
font-size: 1.5em;
|
37
|
-
display: inline-block;
|
38
|
-
color: #aaa;
|
39
|
-
|
40
|
-
}
|
41
|
-
.lv-year-count{
|
42
|
-
font-weight: bold;
|
43
|
-
display: inline-block;
|
44
|
-
font-size: 1.2em;
|
45
|
-
color: #aaa;
|
46
|
-
|
47
|
-
}
|
48
|
-
.lv-year-count::before{
|
49
|
-
content: "x";
|
50
|
-
margin-left: 1em;
|
51
|
-
margin-right: 0.2em;
|
52
|
-
font-weight: 400;
|
53
|
-
font-size: 1.5rem;
|
54
|
-
color: #aaa;
|
55
|
-
}
|
56
|
-
|
57
|
-
#loveiContainer{
|
58
|
-
margin-bottom: 2em;
|
59
|
-
}
|
60
|
-
|
61
|
-
</style>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<script >
|
66
|
-
function create_heatmap(heatmapid,endYear,dataObj,title,count,node){
|
67
|
-
|
68
|
-
|
69
|
-
{%- include getPostData.js -%}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
{%- include heatmap_svg.js -%}
|
74
|
-
/*******************************/
|
75
|
-
/*******************************/
|
76
|
-
/*******************************/
|
77
|
-
|
78
|
-
|
79
|
-
let container = document.createElement('div')
|
80
|
-
container.className = 'map-container'
|
81
|
-
let divtitle = document.createElement('div')
|
82
|
-
divtitle.className = 'lv-year'
|
83
|
-
|
84
|
-
container.appendChild(divtitle)
|
85
|
-
let div = document.createElement('div')
|
86
|
-
div.className = 'heatmap'
|
87
|
-
div.id = heatmapid
|
88
|
-
|
89
|
-
container.appendChild(div)
|
90
|
-
node.parentNode.insertBefore(container,node)
|
91
|
-
|
92
|
-
if (!endYear) {
|
93
|
-
let now = new Date()
|
94
|
-
endYear = `${now.getFullYear()}-${(101 + now.getMonth()).toString().substring(1)}-${(100 + now.getDate()).toString().substring(1)}`
|
95
|
-
}else if(('' + endYear).length == 4 ){
|
96
|
-
endYear = '' + endYear + '-12-31'
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
const svgmap = createSVGMap(endYear,dataObj.beginDate)
|
101
|
-
container.appendChild(svgmap.svg);
|
102
|
-
svgmap.updateDays(dataObj)
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
</script>
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<article>
|
115
|
-
|
116
|
-
|
117
|
-
{%- assign encid = "" | get_encrypt_id:page -%}
|
118
|
-
{%- if encid == '' -%}
|
119
|
-
<div id="loveiContainer">
|
120
|
-
|
121
|
-
<!-- <div class='heatmap' id="loveid"> -->
|
122
|
-
|
123
|
-
</div>
|
124
|
-
|
125
|
-
{{ content }}
|
126
|
-
{%- else -%}
|
127
|
-
{%-include encrypted.html-%}
|
128
|
-
{%- endif -%}
|
129
|
-
|
130
|
-
</article>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<script>
|
135
|
-
|
136
|
-
{%- include getmapdata.js %}
|
137
|
-
</script>
|
5
|
+
{% include post_entry.html %}
|
data/_layouts/post.html
CHANGED
@@ -1,23 +1,5 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
5
|
-
{
|
6
|
-
<h2>{{ page.title }}</h2>
|
7
|
-
{%- endif -%}
|
8
|
-
<time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time>
|
9
|
-
{%- for tag in page.tags -%}
|
10
|
-
{%- capture tag_name -%}{{ tag }}{%- endcapture -%}
|
11
|
-
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html" class="tag"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
12
|
-
{%- endfor -%}
|
13
|
-
|
14
|
-
<article>
|
15
|
-
{%- assign encid = "" | get_encrypt_id:page -%}
|
16
|
-
{%- if encid == '' -%}
|
17
|
-
{{ content }}
|
18
|
-
{%- else -%}
|
19
|
-
{%-include encrypted.html-%}
|
20
|
-
{%- endif -%}
|
21
|
-
|
22
|
-
|
23
|
-
</article>
|
4
|
+
|
5
|
+
{% include post_entry.html %}
|
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.10.
|
4
|
+
version: 0.10.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -74,12 +74,15 @@ files:
|
|
74
74
|
- _includes/heatmap.js
|
75
75
|
- _includes/heatmap_svg.js
|
76
76
|
- _includes/home.html
|
77
|
+
- _includes/lovemap_layout.html
|
77
78
|
- _includes/main.css
|
78
79
|
- _includes/menu_item.html
|
79
80
|
- _includes/navbar.html
|
80
81
|
- _includes/navbar_left.html
|
81
82
|
- _includes/page_frame_left.html
|
82
83
|
- _includes/paginate.html
|
84
|
+
- _includes/post_entry.html
|
85
|
+
- _includes/post_layout.html
|
83
86
|
- _includes/post_list.html
|
84
87
|
- _layouts/about.html
|
85
88
|
- _layouts/archive.html
|
@@ -110,7 +113,7 @@ files:
|
|
110
113
|
- index.html
|
111
114
|
homepage: https://github.com/vitock/jekyll-zeta
|
112
115
|
licenses:
|
113
|
-
-
|
116
|
+
- GPLv3
|
114
117
|
metadata: {}
|
115
118
|
post_install_message:
|
116
119
|
rdoc_options: []
|