Updated regex to select less content on posts

This commit is contained in:
Frederic Hemberger 2011-09-21 11:41:55 +02:00
parent 111142c5c2
commit 3dbc379caa
1 changed files with 1 additions and 1 deletions

View File

@ -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)
/.<div class="entry-content">(?<content>[\s\S]*?)<\/div>\s*<\/article>/ =~ input
/<div class="entry-content">(?<content>[\s\S]*?)<\/div>\s*<(footer|\/article)>/ =~ input
return (content.nil?) ? input : content
end