Sha256: c6196674ad13db1e9943c170ac1de738884625e46a0d3b4196f3fa679d6ee60e
Contents?: true
Size: 1.5 KB
Versions: 3
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: 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 -%} </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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-zeta-0.4.2 | _includes/post_list.html |
jekyll-zeta-0.4.1 | _includes/post_list.html |
jekyll-zeta-0.4.0 | _includes/post_list.html |