Updated regex to select less content on posts
This commit is contained in:
parent
111142c5c2
commit
3dbc379caa
@ -59,7 +59,7 @@ module OctopressLiquidFilters
|
|||||||
# Extracts raw content DIV from template, used for page description as {{ content }}
|
# Extracts raw content DIV from template, used for page description as {{ content }}
|
||||||
# contains complete sub-template code on main page level
|
# contains complete sub-template code on main page level
|
||||||
def raw_content(input)
|
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
|
return (content.nil?) ? input : content
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user