Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
teaser extraction js snippet
var teaserForPost = function(name) {
var full = partial ("posts/" + name);
return full.replace (/<!-- more -->(.|\n)*/, '', 'm');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.