diff options
Diffstat (limited to '_site_build/_plugins/posts.rb')
| -rw-r--r-- | _site_build/_plugins/posts.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_site_build/_plugins/posts.rb b/_site_build/_plugins/posts.rb new file mode 100644 index 0000000..58d0128 --- /dev/null +++ b/_site_build/_plugins/posts.rb @@ -0,0 +1,9 @@ +module Jekyll + module ExcerptFilter + def text_excerpt(text) + text.split(@context.registers[:site].config['excerpt_tag']).first + end + end +end + +Liquid::Template.register_filter(Jekyll::ExcerptFilter) |
