|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|