Skip to content

beeware/lektor-gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lektor-gravatar

A Lektor plugin providing a template filter that generates Gravatar URLs for an email address.

The implementation is drawn from the documentation on writing Lektor plugins; this package is provided for the convenience of others.

Usage

To add Gravatar support to your Lektor project, run:

$ lektor plugins add lektor-gravatar

Then, in a template, you can reference:

<img src="{{ object.email|gravatar }}" alt="gravatar">

where object.email is a variable in your context containing an email address.

Community

lektor-gravatar is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with this backend, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.