Sha256: bee3c22c1f03002bdbdef3af7e10366aaaa0db4e1f8e9a1b7b834134b09bedf1
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
{% assign posts = site.categories[page.slug] | default:site.tags[page.slug] | default:site.posts %} <ul id="post-list"> {% for post in posts %} <li> <a href="{{ site.baseurl }}{{ post.url | remove_first: '/' }}">{{ post.title }} {{ post.date | date:"%b %d, %Y" }} </a> </li> {% endfor %} </ul> <!-- Pagination links --> {% if paginator.total_pages > 1 %} <div class="pagination"> {% if paginator.previous_page %} <a href="{{ paginator.previous_page_path | relative_url }}">« Prev</a> {% else %} <span>« Prev</span> {% endif %} <small>|</small> {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} {{ page }} {% elsif page == 1 %} <a href="{{ paginator.previous_page_path | relative_url }}">{{ page }}</a> {% else %} <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a> {% endif %} <small>|</small> {% endfor %} {% if paginator.next_page %} <a href="{{ paginator.next_page_path | relative_url }}">Next »</a> {% else %} <span>Next »</span> {% endif %} </div> {% endif %}
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
jekyll-theme-gingko-0.1.1 | _includes/archives.html |
jekyll-theme-gingko-0.1.0 | _includes/archives.html |
gingko-0.1.2 | _includes/archives.html |
gingko-0.1.1 | _includes/archives.html |