diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2019-03-25 21:05:35 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2019-03-25 21:05:35 +0000 |
| commit | e1f06b311652786b2a3c9dd5981bbe9b51383d1a (patch) | |
| tree | 6a584596d2d402f6eeb1e4bc14374a76fb8e1dec /_site_build/_plugins/date.rb | |
| parent | 4972068ab2e97a017e28f4e7b91858f9fcaeceb6 (diff) | |
Begining of rebuild.
Diffstat (limited to '_site_build/_plugins/date.rb')
| -rw-r--r-- | _site_build/_plugins/date.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/_site_build/_plugins/date.rb b/_site_build/_plugins/date.rb deleted file mode 100644 index f1a3c26..0000000 --- a/_site_build/_plugins/date.rb +++ /dev/null @@ -1,19 +0,0 @@ -module Jekyll - module DateFilter - def ordinalize(date) - day = date.day - if (11..13).include?(day % 100) - "#{day}th" - else - case day % 10 - when 1; "#{day}st" - when 2; "#{day}nd" - when 3; "#{day}rd" - else "#{day}th" - end - end - end - end -end - -Liquid::Template.register_filter(Jekyll::DateFilter) |
