Sha256: f6465b9776a42ce7d6a3159b6c2be9463aa0340f72bd6479d72fe44481d47ece

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 KB

Contents

{%- if include.collection -%}
  {%- assign posts = include.collection -%}  
{%- else -%}
  {%- assign posts = site.posts -%}
{%- endif -%}

{%- if include.limit and posts.size > include.limit -%}
  {%- assign limit_exceeded = true -%}
{%- else -%}
  {%- assign limit_exceeded = false -%}
{%- endif -%}
{%- if posts.size > 0 -%}
   {%- assign lock_path = site.theme_config.lock_path  -%}
  <ul class="postlistul">
    {%- for post in posts limit: include.limit -%}
        <li class="postlistli">
          <date>{{- post.date | date: site.theme_config.date_format -}}</date>
          {%- 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: 2px;" 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 -%}
          
        </li> 
    {%- endfor -%}
    {%- if include.show_more and limit_exceeded -%}
      <li class="postlistli">
        <a href="{{ include.show_more_url | relative_url }}">{{ include.show_more_text | default: "Show more..." }}</a>
      </li>
    {%- endif -%}
  </ul>
{%- endif -%}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-zeta-0.5.3 _includes/post_list.html
jekyll-zeta-0.5.2 _includes/post_list.html
jekyll-zeta-0.5.1 _includes/post_list.html
jekyll-zeta-0.5.0 _includes/post_list.html
jekyll-zeta-0.4.4 _includes/post_list.html
jekyll-zeta-0.4.3 _includes/post_list.html