How to add a “Read more” link to a Jekyll blog

We want to add a “read more” link, when the post excerptndiffers from the content. Then we link to the post using the handy post.url.nEasily done by adding this within your post loop (mine was part of home.html):n{% raw %}n{% if post.excerpt != post.content %}nRead more…n{% endif %}nn{% endraw %}

Leave a Reply