# Libravatar plugin for Pelican ## Description This plugin allows the inclusion of [Libravatar](http://www.libravatar.org) user profile pictures, according to the email address of the article's author. ## Usage ### Specifying the author's email address The default email address is taken from the `LIBRAVATAR_AUTHOR_EMAIL` variable in the Pelican configuration file. This default value can be overridden in a per-article basis, according to the email address found in the article's metadata. In ReSTructuredText: ```rst :email: bart.simpson@example.com ``` In Markdown: ```markdown Email: bart.simpson@example.com ``` If the avatar for the specified email address is not found at Libravatar, it is searched at [Gravatar](http://www.gravatar.com). If it is not found there neither, a default picture is shown. The default for the "missing picture" can be defined in the configuration variable `LIBRAVATAR_MISSING`. ### Adjusting the template This plugin assigns the `author_libravatar` variable to the Libravatar URL and makes the variable available within the article's context. For instance, you can add the following to a template file (for example, to the `article_infos.html` template file of the notmyidea theme), just before the infomation about the author: ```html {% if article.author_libravatar %}