diff options
author | uvok cheetah | 2025-01-02 20:13:36 +0100 |
---|---|---|
committer | uvok cheetah | 2025-01-02 20:13:44 +0100 |
commit | 13a4d8a9317b32c56a8640991a4eabc1b6fd92b6 (patch) | |
tree | 2dc4ea27b699abd4c7bb9cf4968404874bb1dd64 /_plugins/base64_filter.rb | |
parent | 60e27bc6cc0271d7c3d02718d4e7a5865044bb6c (diff) |
Add include with fediverse comments
Diffstat (limited to '_plugins/base64_filter.rb')
-rw-r--r-- | _plugins/base64_filter.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_plugins/base64_filter.rb b/_plugins/base64_filter.rb new file mode 100644 index 0000000..2bf0d6b --- /dev/null +++ b/_plugins/base64_filter.rb @@ -0,0 +1,9 @@ +require "base64" + +module Base64Filter + def base64_encode (input) + Base64.strict_encode64(input).tr('+/', '-_') + end +end + +Liquid::Template.register_filter(Base64Filter) |