Last active
August 29, 2015 14:15
-
-
Save mxw39/18db65fc834f3d554398 to your computer and use it in GitHub Desktop.
Jekyll Better Excerpt without Plugin Installation
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
| <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