devinhalladay / jekyll-gravatar

A new filter for Jekyll that parses your email address and returns the link to your Gravatar.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jekyll-gravatar

Installation

Place gravatar.rb into your site's _plugins directory

Usage

Just use {{ 'me@example.com' | gravatar }}. It'll return the link to your Gravatar.

Example:

<figure>
  <img src="{{ 'me@example.com' | gravatar }}" alt="My beautiful face.">
</figure>

Changing avatar size

Go into gravatar.rb and edit line 6. Change ?s=600 to ?s=[your-size-here]. If your Gravatar is a high-res image, you can use a relatively large size. If it's a low-quality image, do whatever you want. I don't care.

About

A new filter for Jekyll that parses your email address and returns the link to your Gravatar.

License:MIT License


Languages

Language:Ruby 100.0%