From 596ec87c37d4f848e478abbbd0690e52eeb37db1 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sat, 20 Aug 2011 16:02:37 -0400 Subject: now only excerpted articles show the "read on" link. Also the text for that link can be set in the _config.yml --- plugins/octopress_filters.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins') 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 =~ //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/) -- cgit v1.2.1