jekyll-zeta 0.7.5.1 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +1 -0
- data/_includes/archive_list.html +16 -4
- data/_includes/head.html +2 -4
- data/_includes/heatmap.html +38 -9
- data/_includes/heatmap.js +289 -246
- data/_includes/home.html +5 -6
- data/_includes/navbar_left.html +39 -0
- data/_includes/page_frame_left.html +20 -0
- data/_layouts/archive.html +3 -3
- data/_layouts/default.html +7 -1
- data/_layouts/heatmap.html +1 -1
- data/_sass/common.scss +336 -0
- data/_sass/heatmap.scss +175 -0
- data/_sass/jekyll-zeta-left.scss +99 -0
- data/_sass/jekyll-zeta.scss +10 -500
- data/assets/css/left.scss +6 -0
- data/assets/image/avartar.png +0 -0
- data/assets/image/avartar2.png +0 -0
- data/index.html +2 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb48706f987ba8e19910a12134effc421afee6d6a3bf0b1cdf1f6e0c5d153a0b
|
4
|
+
data.tar.gz: c0832d36039ad7c9329e3c5881fd42b30a2268d5ea00553d87969f4bc4e7f726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b24f8726abafde268178ed833190e2cd2933aaaf3d557d19b9804833d0178da38c792d50e43477a784afa8257c51038c7f960a56007d05eedd607be921e8f1e
|
7
|
+
data.tar.gz: 01e73136eada84c3a79a1fb40bdb140cd06fe40698aa42cc39ba6357e856891e11a8eaaa04bdd79fbdab6b48b48b7cbc0d0467b1270c37ca3c872410bc5affcf
|
data/_config.yml
CHANGED
@@ -17,6 +17,7 @@ favicon: "logo.png" # name+extension of favicon (which must be put on the root f
|
|
17
17
|
|
18
18
|
theme_config:
|
19
19
|
appearance: "auto" # can be "light", "dark" or "auto"
|
20
|
+
navbarPosition: left # left or top
|
20
21
|
date_format: "%m/%d" # customize how date is formatted
|
21
22
|
post_date_format: "%Y/%m/%d"
|
22
23
|
encrypt_title: "Content is Encryped :)"
|
data/_includes/archive_list.html
CHANGED
@@ -17,11 +17,23 @@
|
|
17
17
|
{%- if ymPre != "" -%}
|
18
18
|
</ul>
|
19
19
|
{%- endif -%}
|
20
|
-
|
21
|
-
|
20
|
+
|
21
|
+
{% if include.showheatmap == 1 or include.showheatmap == true %}
|
22
|
+
<div class=archive-map>
|
23
|
+
{%- include heatmap.html endYear=ymCur title=ymCur -%}
|
24
|
+
</div >
|
22
25
|
{%- else -%}
|
23
|
-
|
24
|
-
|
26
|
+
{%- if yCounter == 0 -%}
|
27
|
+
<li class="postlistli largeli largeli0">{{ymCur}}</li>
|
28
|
+
|
29
|
+
{%- else -%}
|
30
|
+
<li class="postlistli largeli">{{ymCur}}</li>
|
31
|
+
{%- endif -%}
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
25
37
|
|
26
38
|
{%- assign yCounter = yCounter | plus:1 -%}
|
27
39
|
<ul class="postlistul">
|
data/_includes/head.html
CHANGED
@@ -23,10 +23,8 @@
|
|
23
23
|
{%- endif -%}
|
24
24
|
|
25
25
|
<link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}" />
|
26
|
-
{%- if site.theme_config.
|
27
|
-
<
|
28
|
-
{%- include main.css -%}
|
29
|
-
</style>
|
26
|
+
{%- if site.theme_config.navbarPosition == 'left' -%}
|
27
|
+
<link rel="stylesheet" href="{{ "/assets/css/left.css" | relative_url }}" />
|
30
28
|
{%- else -%}
|
31
29
|
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
|
32
30
|
{%- endif -%}
|
data/_includes/heatmap.html
CHANGED
@@ -1,18 +1,31 @@
|
|
1
|
+
<div>
|
1
2
|
{%- if include.collection -%}
|
2
3
|
{%- assign posts = include.collection -%}
|
3
4
|
{%- else -%}
|
4
5
|
{%- assign posts = site.posts -%}
|
5
6
|
{%- endif -%}
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
{% if datemapidOnPage == nil %}
|
9
|
+
{%- assign datemapidOnPage = 0 -%}
|
10
|
+
{%- else -%}
|
11
|
+
{%- assign datemapidOnPage = datemapidOnPage | plus : 1-%}
|
12
|
+
|
13
|
+
{%- endif -%}
|
11
14
|
|
15
|
+
|
16
|
+
{% assign mapEleId = "heatmap-" | append: datemapidOnPage %}
|
17
|
+
<div class="heatmap-title">{{ include.title | default :"" }}</div>
|
18
|
+
|
19
|
+
<div class='heatmap' id="{{mapEleId}}">
|
20
|
+
|
12
21
|
</div>
|
13
|
-
|
22
|
+
{%- if datemapidOnPage == 0 -%}
|
23
|
+
|
24
|
+
{% comment %}
|
25
|
+
只加载一次
|
26
|
+
{% endcomment %}
|
14
27
|
<script >
|
15
|
-
|
28
|
+
function create_heatmap(heatmapid,endYear){
|
16
29
|
|
17
30
|
{%- assign MothStr = site.theme_config.heatMapMonth -%}
|
18
31
|
{%- assign HeatMapShowWeek = site.theme_config.heatMapShowWeek -%}
|
@@ -26,8 +39,24 @@
|
|
26
39
|
var _HeatMapType = "{{ HeatMapType | default:'1' }}"
|
27
40
|
var _MonthStr = '{{ MothnStr | default: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec" }}'
|
28
41
|
var _showWeek = '{{ HeatMapShowWeek | default: "Mon Wed Fri" }}';
|
29
|
-
|
30
42
|
var _allyearurl = '{{ "assets/dyn/allyear.json" | relative_url }}';
|
31
|
-
{% include heatmap.js
|
32
|
-
}
|
43
|
+
{% include heatmap.js %}
|
44
|
+
}
|
45
|
+
</script>
|
46
|
+
|
47
|
+
{% else %}
|
48
|
+
|
49
|
+
{%- endif -%}
|
50
|
+
|
51
|
+
|
52
|
+
{{child_initialized}}
|
53
|
+
|
54
|
+
<script>
|
55
|
+
!function(){
|
56
|
+
var endYear = "{{ include.endYear }}"
|
57
|
+
var mapid = "{{ mapEleId }}"
|
58
|
+
create_heatmap(mapid,endYear )
|
59
|
+
}()
|
33
60
|
</script>
|
61
|
+
|
62
|
+
</div>
|