Skip to content

Instantly share code, notes, and snippets.

Last active December 25, 2015 04:28
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