_includes/heatmap.html in jekyll-zeta-0.7.1 vs _includes/heatmap.html in jekyll-zeta-0.7.2

- old
+ new

@@ -2,50 +2,29 @@ {%- assign posts = include.collection -%} {%- else -%} {%- assign posts = site.posts -%} {%- endif -%} -{%- assign jsstr='' -%} -{%- for post in posts limit: include.limit -%} - - - -{%- capture url -%} -{{ post.url | relative_url }} -{%- endcapture -%} - -{%- capture postdate -%} -{{ post.date | date: '%Y-%m-%d' }} -{%- endcapture -%} - - -{%- capture posttitlex -%} -{{ post.title | replace: '"'," "}} -{%- endcapture -%} - - -{%- capture jsstr -%} -{{ jsstr | append: url | append:"\x01" | append: posttitlex | append:"\x01" | append: postdate | append:"\n" }} -{%- endcapture -%} -{%- endfor -%} <div> <span class="heatmap-title">{{ heatMapTitle | site.theme_config.heatMapTitle }}</span> <div class='heatmap' id="heatmap"> </div> </div> <script > (function(){ - var _GALLPOSTSTR = "{{jsstr}}"; + {%- assign MothStr = site.theme_config.heatMapMonth -%} {%- assign HeatMapShowWeek = site.theme_config.heatMapShowWeek -%} {%- assign HeatMapType = site.theme_config.heatMapType -%} var _HeatMapType = "{{ HeatMapType | default:'1' }}" var _MonthStr = '{{ MothnStr | default: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec" }}' var _showWeek = '{{ HeatMapShowWeek | default: "Mon Wed Fri" }}'; + + var _allyearurl = '{{ "assets/dyn/allyear.json" | relative_url }}'; {% include heatmap.js %} })() </script>