Last active
August 29, 2015 14:03
-
-
Save DarrylDias/d7c86a86fbc0b143bd07 to your computer and use it in GitHub Desktop.
Adding Read More to Jekyll.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if post.content contains '<!--more-->' %} | |
{{ post.content | split:'<!--more-->' | first }} | |
<p><a href="{{ post.url }}">View Post</a></p> | |
{% else %} | |
{{ post.content }} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment