Skip to content

Commit

Permalink
Add a Continue Reading link
Browse files Browse the repository at this point in the history
Allows a reader to click directly through to the article from the
end of the summary.
  • Loading branch information
amorphic committed Jan 13, 2019
1 parent d4612f9 commit 477a5db
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
36 changes: 36 additions & 0 deletions static/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions templates/partials/loop.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ <h2 class="post-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
{% else %}
<section class="post-excerpt">
{% if article.has_summary %}
{{ article.summary }}
{{ article.summary }}
{% elif article.summary %}
{{ article.summary|striptags|truncate(250) }}
{{ article.summary|striptags|truncate(250) }}
{% endif %}
</section>
<section class="post-excerpt-footer">
<span class="continue-reading">
<a href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">Continue Reading</a>
</span>
{% include 'partials/comments_count.html' %}
</section>
{% endif %}
</div>
</div>
</article>
{% endfor %}

Expand Down

0 comments on commit 477a5db

Please sign in to comment.