diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-09-21 11:41:55 +0200 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-09-21 11:41:55 +0200 |
commit | 3dbc379caa737157e1e76d65c0cea2305eda4a5d (patch) | |
tree | 537a4ecbd432176c78415fceea224b673cfb18b4 | |
parent | 111142c5c22d45798f6f26aed576674aa1049836 (diff) | |
download | my_new_personal_website-3dbc379caa737157e1e76d65c0cea2305eda4a5d.tar.xz my_new_personal_website-3dbc379caa737157e1e76d65c0cea2305eda4a5d.zip |
Updated regex to select less content on posts
-rw-r--r-- | plugins/octopress_filters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index bade7e49..7eaaaa7c 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) - /.<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 |