diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-24 21:15:21 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-24 21:15:21 +0100 |
commit | 126fa877f904a894e43c423fe19427e9221e36d1 (patch) | |
tree | 4522622d5719a78dee7b60d97dba5d58695496ea /_plugins/datefmt.rb | |
parent | 1892bc38d8416a6ec79f37c41a9ffb38b6f44938 (diff) |
more tweaks
Diffstat (limited to '_plugins/datefmt.rb')
-rw-r--r-- | _plugins/datefmt.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/_plugins/datefmt.rb b/_plugins/datefmt.rb new file mode 100644 index 0000000..7c2274f --- /dev/null +++ b/_plugins/datefmt.rb @@ -0,0 +1,8 @@ +module DateFormatter + def datefmt(input) + return input.strftime("%F") + end +end + +Liquid::Template.register_filter(DateFormatter) + |