Skip to content

Commit

Permalink
Excerpt improvements (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenfuqua authored May 2, 2024
1 parent 08063b9 commit 599a568
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
{% assign content = post.excerpt %}
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
{% include article.html %}

{% if post.content.size > post.excerpt.size %}
<p><a href="{{ post.url }}" class="badge badge-primary">Continue reading&hellip; </a></p>
{% endif %}
</article>
<a href="{{ url }}" class="badge badge-primary">Continue reading&hellip;</a>
{% endunless %}
{% endfor %}
</div>
Expand Down

0 comments on commit 599a568

Please sign in to comment.