Jekyll custom liquid tag plugin example using Gravatar. Gravatar powers your public profile, visible wherever you post, comment, and interact online.
Create Jekyll Pugin
Create a folder _plugins
in Jekyll root directory and place the below ruby code in jekyll-gravatar-tag.rb
file.
Gravater Plugin Code
File name: jekyll-gravatar-tag.rb
Putting plugin to use
Create a blog page and include the following snippet in the code.
Plugin results
HTML output
Using Plugin in Card View
John Smith
mail@example.com
Last updated 3 mins ago
References