https://github.com/pathawks/liquid-md5
A Liquid filter that outputs an MD5 hash
https://github.com/pathawks/liquid-md5
Last synced: 4 months ago
JSON representation
A Liquid filter that outputs an MD5 hash
- Host: GitHub
- URL: https://github.com/pathawks/liquid-md5
- Owner: pathawks
- License: mit
- Created: 2013-04-08T20:17:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T18:04:37.000Z (almost 9 years ago)
- Last Synced: 2025-06-15T20:41:45.155Z (5 months ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jekyll-plugins - **MD5** - md5](https://rubygems.org/gems/liquid-md5)) by Pat Hawks -- Returns an MD5 hash. Helpful for generating Gravatars in templates (Text Filters)
README
# liquid-md5
[](https://rubygems.org/gems/liquid-md5)
[](https://travis-ci.org/pathawks/liquid-md5)
[](https://gemnasium.com/pathawks/liquid-md5)
*A Liquid filter that outputs an MD5 hash*
## Installation
1. Add `gem 'liquid-md5'` to your site's Gemfile and run `bundle`
2. Add the following to your site's `_config.yml`:
```yml
gems:
- liquid-md5
```
## Usage
```liquid
{{ site.email | md5 }}
```
Can be useful for generating Gravatar URLs from email addresses.
```liquid
http://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=144
```