diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-08-20 16:02:37 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-08-20 16:02:50 -0400 |
commit | 596ec87c37d4f848e478abbbd0690e52eeb37db1 (patch) | |
tree | 0edffecab3ff19fe8f84d7cd0389c28c8bbf72f6 /plugins | |
parent | 178a198ea7f932307bbe2affeba10240a3168ff3 (diff) | |
download | my_new_personal_website-596ec87c37d4f848e478abbbd0690e52eeb37db1.tar.xz my_new_personal_website-596ec87c37d4f848e478abbbd0690e52eeb37db1.zip |
now only excerpted articles show the "read on" link. Also the text for that link can be set in the _config.yml
Diffstat (limited to '')
-rw-r--r-- | plugins/octopress_filters.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index 1170f8b6..a63c43ab 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -12,6 +12,11 @@ module OctopressFilters end end + # Checks for excerpts (helpful for template conditionals) + def has_excerpt(input) + input =~ /<!--\s*more\s*-->/i ? true : false + end + # Summary is used on the Archive pages to return the first block of content from a post. def summary(input) if input.index(/\n\n/) |