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: 18 days ago
JSON representation

A Liquid filter that outputs an MD5 hash

Lists

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
```