Sha256: 378ed7fa9b6f3efab8dd06bc5ab3d13e1f4391b3b5ddce7f0f9fc5aaf4eb53ca

Contents?: true

Size: 1.67 KB

Versions: 7

Compression:

Stored size: 1.67 KB

Contents

{%-assign posts = include.collection -%}
{%- if posts.size > 0 -%}

{%- assign ymPre = "" -%}
{%- assign archive_date_format =  site.theme_config.archive_date_format | default: "%Y" -%}

{%- assign archive_date_titleformat = site.theme_config.archive_title_date_format | default: "%m-%d" -%} 

{%- assign yCounter = 0 -%}
{%- assign lock_path = site.theme_config.lock_path  -%}
<ul class="postlistul">
{%- for post in posts limit: include.limit -%}
    {%- assign  ymCur = post.date | date: archive_date_format -%}  
    {%- if ymCur != ymPre -%}
        {%- if ymPre != "" -%}
             </ul>
        {%- endif -%}
      {%- if yCounter == 0 -%}
      <li class="postlistli largeli largeli0">{{ymCur}}</li> 
      {%- else -%}
        <li class="postlistli largeli">{{ymCur}}</li> 
      {%- endif -%}
      
      {%- assign yCounter = yCounter | plus:1 -%}
      <ul class="postlistul">
    {%- endif -%}
    {%- assign ymPre = ymCur -%}
    
    <li class="postlistli">
      {%- if lock_path.size > 0  -%}
        {%- assign encid = "" | get_encrypt_id:post | default: "" -%}
        {%- if encid.size > 1  -%}
        <div >
          <a href="{{ post.url | relative_url }} ">{{ post.title  }}</a>  
          <img  style="width:12px;height:12px;display: inline;margin-left: 5px;" src="{{ lock_path | relative_url}}">
        </div>
        {%- else -%}
          <a href="{{ post.url | relative_url }}">{{ post.title  }}</a>
        {%- endif -%}
      {%- else -%}
        <a href="{{ post.url | relative_url }}">{{ post.title  }}</a>
      {%- endif -%}
      <date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date>
    </li>
{%- endfor -%}
</ul>
{%- endif -%}

 

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-zeta-0.3.11 _includes/archive_list.html
jekyll-zeta-0.3.10 _includes/archive_list.html
jekyll-zeta-0.3.9 _includes/archive_list.html
jekyll-zeta-0.3.8 _includes/archive_list.html
jekyll-zeta-0.3.7 _includes/archive_list.html
jekyll-zeta-0.3.6.7 _includes/archive_list.html
jekyll-zeta-0.3.6.6 _includes/archive_list.html