Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pathawks/liquid-md5
A Liquid filter that outputs an MD5 hash
https://github.com/pathawks/liquid-md5
Last synced: about 2 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 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T18:04:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-13T22:54:32.754Z (about 2 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
[![Gem Version](https://img.shields.io/gem/v/liquid-md5.svg)](https://rubygems.org/gems/liquid-md5)
[![Build Status](https://img.shields.io/travis/pathawks/liquid-md5/master.svg)](https://travis-ci.org/pathawks/liquid-md5)
[![Dependency Status](https://img.shields.io/gemnasium/pathawks/liquid-md5.svg)](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
```