Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Aug 26, 2013
2 parents 001272e + 25a8342 commit 9ebb147
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 10 deletions.
30 changes: 21 additions & 9 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,27 @@ <h2>{{ page.date | date: "%B %d, %Y" }}</h2>
</footer>
</div><!-- /.entry-content -->
{% if site.disqus_shortname and page.comments %}<section id="disqus_thread"></section><!-- /#disqus_thread -->{% endif %}
{% if page.previous %}<div class="read-more">
<div class="read-more-header">
<a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a>
</div><!-- /.read-more-header -->
<div class="read-more-content">
<h3><a href="{{ site.url }}{{ page.previous.url }}" title="{{ page.previous.title }}">{{ page.previous.title }}</a></h2>
<p>{% if page.previous.description %}{{ page.previous.description }}{% else %}{{ page.previous.content | strip_html | strip_newlines | truncate: 120 }}{% endif %} <a href="{{ site.url }}{{ page.previous.url }}">Continue reading</a></p>
</div><!-- /.read-more-content -->
</div><!-- /.read-more -->{% endif %}
{% if site.related_posts.size %}
<div class="read-more">
{% for post in site.related_posts limit:1 %}
<div class="read-more-header">
<a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a>
</div><!-- /.read-more-header -->
<div class="read-more-content">
<h3><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3>
<p>{% if post.description %}{{ post.description }}{% else %}{{ content | strip_html | strip_newlines | truncate: 140 }}&hellip;{% endif %} <a href="{{ site.url }}{{ post.url }}">Continue reading</a></p>
</div><!-- /.read-more-content -->
{% 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: "%B %d, %Y" }}</span>
</div><!-- /.list-item -->
{% endfor %}
</div><!-- /.read-more-list -->
{% endif %}
</div><!-- /.read-more -->
</article>
</div><!-- /#main -->

Expand Down
Loading

0 comments on commit 9ebb147

Please sign in to comment.