Sha256: c0748829ac130ef977b7b22ee97275ebcfce45ad895f40ea330f95160c1a825a
Contents?: true
Size: 1.75 KB
Versions: 13
Compression:
Stored size: 1.75 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 -%} {%- assign lock_char = site.theme_config.lock_char | default: "🔑" -%} <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"> <date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date> {%- assign encid = "" | get_encrypt_id:post | default: "" -%} {%- if encid.size > 1 -%} <div > <a href="{{ post.url | relative_url }} ">{{ post.title }}</a> {%- if lock_path.size > 1 -%} <img style="width:12px;height:12px;display: inline;margin-left: 2px;" src="{{ lock_path | relative_url}}"> {%- else -%} <text class="iconchar"> {{lock_char}} </text> {%- endif -%} </div> {%- else -%} <a href="{{ post.url | relative_url }}">{{ post.title }}</a> {%- endif -%} </li> {%- endfor -%} </ul> {%- endif -%}
Version data entries
13 entries across 13 versions & 1 rubygems