summaryrefslogtreecommitdiff
path: root/_site_build/_plugins/posts.rb
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2019-03-25 21:05:35 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2019-03-25 21:05:35 +0000
commite1f06b311652786b2a3c9dd5981bbe9b51383d1a (patch)
tree6a584596d2d402f6eeb1e4bc14374a76fb8e1dec /_site_build/_plugins/posts.rb
parent4972068ab2e97a017e28f4e7b91858f9fcaeceb6 (diff)
Begining of rebuild.
Diffstat (limited to '_site_build/_plugins/posts.rb')
-rw-r--r--_site_build/_plugins/posts.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/_site_build/_plugins/posts.rb b/_site_build/_plugins/posts.rb
deleted file mode 100644
index 41826dd..0000000
--- a/_site_build/_plugins/posts.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'sanitize'
-
-module Jekyll
- module PostFilter
- def truncate(html, num_characters = 1000, indicator = ' [...]')
- '<p>' << Sanitize.clean(html).slice(Regexp.new(".{1,#{num_characters}}( |$)")).chomp(' ') << indicator << '</p>'
- end
-
- def chomp_url(url, str = 'index.html')
- url.chomp(str)
- end
- end
-end
-
-Liquid::Template.register_filter(Jekyll::PostFilter)