Skip to content

Instantly share code, notes, and snippets.

@mxw39
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save mxw39/18db65fc834f3d554398 to your computer and use it in GitHub Desktop.

Select an option

Save mxw39/18db65fc834f3d554398 to your computer and use it in GitHub Desktop.
Jekyll Better Excerpt without Plugin Installation
<p>
{% if post.content contains "<!--begin-->" or post.content contains "<!--end-->" %}
{{ post.content | split: "<!--end-->" | first | split: "<!--begin-->" | last | remove: '<p>' | remove: '</p>' }}
{% endif %}
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment