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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b372b1cf33d7034f355229d9f8c799a04cb27342489d30d8feb98ebf98c8f655
4
- data.tar.gz: 6bc4b3b1b244d79eff1b6357ad702d5953eba90202424de955ea8af7d9eb160d
3
+ metadata.gz: bb48706f987ba8e19910a12134effc421afee6d6a3bf0b1cdf1f6e0c5d153a0b
4
+ data.tar.gz: c0832d36039ad7c9329e3c5881fd42b30a2268d5ea00553d87969f4bc4e7f726
5
5
  SHA512:
6
- metadata.gz: d182e359bd7afb31c8fc52d21eacb9fc5f1a9fb517dcccca336e6838a738e1f90e95f8af889d18664fa2901273e484c9b2a88f1f4bd26acaf8c4411f704fa665
7
- data.tar.gz: d6848200db351e369ecac4638a5f63975c23ba0220609c51890174d08ef23b26a876ffadd03ababab644240353e943f10dbbd998e12ce7bfd61f7d9269574e12
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 :)"
@@ -17,11 +17,23 @@
17
17
  {%- if ymPre != "" -%}
18
18
  </ul>
19
19
  {%- endif -%}
20
- {%- if yCounter == 0 -%}
21
- <li class="postlistli largeli largeli0">{{ymCur}}</li>
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
- <li class="postlistli largeli">{{ymCur}}</li>
24
- {%- endif -%}
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.combine_css_html -%}
27
- <style>
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 -%}
@@ -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
- <div>
8
- <span class="heatmap-title">{{ heatMapTitle | site.theme_config.heatMapTitle }}</span>
9
- <div class='heatmap' id="heatmap">
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
- </div>
22
+ {%- if datemapidOnPage == 0 -%}
23
+
24
+ {% comment %}
25
+ 只加载一次
26
+ {% endcomment %}
14
27
  <script >
15
- (function(){
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>