jekyll-gravatar

jekyll-gravatar

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

jekyll-gravatar

Installation

Place gravatar.rb into your site's _plugins directory

Usage

Just use {{ '[email protected]' | gravatar }}. It'll return the link to your Gravatar.

Example:

<figure>
  <img src="{{ '[email protected]' | 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.

jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer