Browse code

Updated regex to select less content on posts

Frederic Hemberger authored on 21/09/2011 at 09:41:55
Showing 1 changed files
... ...
@@ -59,7 +59,7 @@ module OctopressLiquidFilters
59 59
   # Extracts raw content DIV from template, used for page description as {{ content }}
60 60
   # contains complete sub-template code on main page level
61 61
   def raw_content(input)
62
-    /.<div class="entry-content">(?<content>[\s\S]*?)<\/div>\s*<\/article>/ =~ input
62
+    /<div class="entry-content">(?<content>[\s\S]*?)<\/div>\s*<(footer|\/article)>/ =~ input
63 63
     return (content.nil?) ? input : content
64 64
   end
65 65