Sha256: 97424181de9ed72bf3d5a0ab89a1754558a80109ab6ce91b57f81e3f3a7bf5fe
Contents?: true
Size: 1.57 KB
Versions: 11
Compression:
Stored size: 1.57 KB
Contents
--- layout: default --- <div class="home wrapper"> {{ 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.date_format | default: "%b %-d, %Y" -%} {%- for post in posts -%} <li> <h3> <a class="post-link" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a> </h3> <span class="post-meta">{{ post.date | date: date_format }}</span> {%- if page.show_excerpts != false -%} <p>{{ post.excerpt }}</p> {%- 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
11 entries across 11 versions & 2 rubygems