Sha256: 6e465f46ac1efc0337e5a93727bd16119180fc23ecd8facc76e2dc7066839e72
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
--- layout: base --- <div class="home"> {%- if page.title -%} <h1 class="page-heading">{{ page.title }}</h1> {%- endif -%} {{ content }} {% if site.paginate %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %} {%- if posts.size > 0 -%} {%- if page.list_title -%} <h2 class="post-list-heading">{{ page.list_title }}</h2> {%- endif -%} <ul class="post-list"> {%- assign date_format = site.jekyll-minimal-theme.date_format | default: "%b %-d, %Y" -%} {%- for post in posts -%} {%- assign category_length = post.categories | size -%} <li> <h3 class="post-title"> <a class="post-link" href="{{ post.url | relative_url }}"> {{ post.title | truncate: 48, '...' | escape }} </a> </h3> <span class="post-meta">{{ post.date | date: date_format }} | {%- if category_length == 0 %}uncategorized {%- else -%} {{ post.categories }} {%- endif -%}</span> {%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%} </li> {%- endfor -%} </ul> {% if site.paginate %} <div class="pager"> <ul class="pagination"> {%- if paginator.previous_page %} <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li> {%- else %} <li><div class="pager-edge">•</div></li> {%- endif %} <li><div class="current-page">{{ paginator.page }}</div></li> {%- if paginator.next_page %} <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li> {%- else %} <li><div class="pager-edge">•</div></li> {%- endif %} </ul> </div> {%- endif %} {%- endif -%} </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-minimal-theme-1.0.0 | _layouts/index.html |