Sha256: 68b254d281a883a3d13e1f712269302643199fdcf8de02eab866fb3923317080

Contents?: true

Size: 1.43 KB

Versions: 15

Compression:

Stored size: 1.43 KB

Contents

---
layout: default
---

<br/><br/><br/>
{%- include heatmap.html -%}
 

{% comment %}
generate this page only once。
{% endcomment %}
{% assign ALLJSON = "{" %}

{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y' " %}



{%- for post in postsByYear -%}
    {%- capture kv %}
      "{{ post.name }}":1
      {%- unless forloop.last -%},
      {%- endunless -%}
    {%- endcapture -%}
    {% assign ALLJSON = ALLJSON | append:kv %}


    {% assign itemM = post.items | group_by_exp: "post", "post.date | date: '%m' " %}

    {%- capture  SingleYearJson -%}
    {
        "year":"{{post.name}}",
        {%- for item0 in itemM %}
    "{{item0.name }}":
             [
                {%- for item00 in item0.items -%}
                   {
                    "title":"{{ item00.title | replace: '"', ' '}}",
                     "url":"{{ item00.url | relative_url}}",
                     "date": "{{ item00.date | date:"%Y-%m-%d"}}"
                   }{%- unless forloop.last -%},{%- endunless -%}
                 {%- endfor -%}
             ]   
             {%- unless forloop.last -%},{%- endunless -%}
        {%- endfor -%}
    }
    {%- endcapture -%}

    {%- capture  FILENAME -%}
    assets/dyn/{{post.name}}.json
    {%- endcapture -%}

    {{ SingleYearJson | write_file: FILENAME }}
{%- endfor -%}

{% assign ALLJSON = ALLJSON | append: " }" %}
{{ ALLJSON | write_file: "assets/dyn/allyear.json" }}



 <br>
 {{ content }}

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
jekyll-zeta-0.9.5 _layouts/heatmap.html
no-style-please2-0.9.2 _layouts/heatmap.html
no-style-please2-0.9.1 _layouts/heatmap.html
no-style-please2-0.9.0 _layouts/heatmap.html
jekyll-zeta-0.9.4.4 _layouts/heatmap.html
jekyll-zeta-0.9.4.3 _layouts/heatmap.html
jekyll-zeta-0.9.4.2 _layouts/heatmap.html
jekyll-zeta-0.9.4.1 _layouts/heatmap.html
jekyll-zeta-0.9.4 _layouts/heatmap.html
jekyll-zeta-0.9.3 _layouts/heatmap.html
jekyll-zeta-0.9.2.2 _layouts/heatmap.html
jekyll-zeta-0.9.2.1 _layouts/heatmap.html
jekyll-zeta-0.9.2 _layouts/heatmap.html
jekyll-zeta-0.9.1 _layouts/heatmap.html
jekyll-zeta-0.9.0 _layouts/heatmap.html