Initial commit
This commit is contained in:
45
spec/fixtures/index.html
vendored
Normal file
45
spec/fixtures/index.html
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
layout: default
|
||||
title: Home
|
||||
---
|
||||
|
||||
<div class="posts">
|
||||
{% for post in paginator.posts %}
|
||||
<div class="post">
|
||||
<h1 class="post-title">
|
||||
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
|
||||
<p>
|
||||
{{ post.excerpt }}
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" title="{{ post.title }}">
|
||||
Read More
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
{% if paginator.next_page %}
|
||||
<a class="pagination-item older" href="{{ site.baseurl | prepend: site.url }}page{{paginator.next_page}}">Older</a>
|
||||
{% else %}
|
||||
<span class="pagination-item older">Older</span>
|
||||
{% endif %}
|
||||
{% if paginator.previous_page %}
|
||||
{% if paginator.page == 2 %}
|
||||
<a class="pagination-item newer" href="{{ site.baseurl | prepend: site.url }}">Newer</a>
|
||||
{% else %}
|
||||
<a class="pagination-item newer" href="{{ site.baseurl | prepend: site.url }}page{{paginator.previous_page}}">Newer</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<span class="pagination-item newer">Newer</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user