From 3dbc379caa737157e1e76d65c0cea2305eda4a5d Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Wed, 21 Sep 2011 11:41:55 +0200 Subject: [PATCH] Updated regex to select less content on posts --- plugins/octopress_filters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index bade7e4..7eaaaa7 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -59,7 +59,7 @@ module OctopressLiquidFilters # Extracts raw content DIV from template, used for page description as {{ content }} # contains complete sub-template code on main page level def raw_content(input) - /.
(?[\s\S]*?)<\/div>\s*<\/article>/ =~ input + /
(?[\s\S]*?)<\/div>\s*<(footer|\/article)>/ =~ input return (content.nil?) ? input : content end