_includes/read-more.html in cosy-jekyll-theme-1.0.5 vs _includes/read-more.html in cosy-jekyll-theme-1.0.6

- old
+ new

@@ -1,20 +1,11 @@ -<div class="read-more"> - {% for post in site.related_posts limit:1 offset:1 %} +{% if page.previous.url %} +<a class="read-more" href="{{ site.url }}{{ page.previous.url }}" title="{{ page.previous.url.title }}"> <div class="read-more-header"> - <a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a> + <div class="read-more-btn">Read More</div> </div> <div class="read-more-content"> - <h3><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3> - <p>{% if post.summary %}{{ post.summary }}&hellip;{% endif %} <a href="{{ site.url }}{{ post.url }}">Continue - reading</a></p> + <h3>{{ page.previous.title}}</h3> + <p>【{{ page.previous.date | date: "%Y-%m-%d" }}】{% if page.previous.summary %}{{ page.previous.summary }}{% endif %}</p> </div> - {% endfor %} - <div class="read-more-list"> - {% for post in site.related_posts limit:2 offset:1 %} - <div class="list-item"> - <h4><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h4> - <span>Published on {{ post.date | date: "%Y-%m-%d" }}</span> - </div> - {% endfor %} - </div> -</div> +</a> +{% endif %}