Skip to content

Instantly share code, notes, and snippets.

@DarrylDias
Last active August 29, 2015 14:03
Show Gist options
  • Save DarrylDias/d7c86a86fbc0b143bd07 to your computer and use it in GitHub Desktop.
Save DarrylDias/d7c86a86fbc0b143bd07 to your computer and use it in GitHub Desktop.
Adding Read More to Jekyll.
{% 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