Sha256: 5cfbbfc50672243e09cc77a48c48bf30a476a920cf5e335f7115f8d6c08d6d7b
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# Jekyll Avatar *A Jekyll plugin for rendering GitHub avatars* Jekyll Avatar makes it easy to add GitHub avatars to your Jekyll site by specifying a username. If performance is a concern, Jekyll Avatar is deeply integrated with the GitHub avatar API, ensuring avatars are cached and load in parallel. ## Installation Add the following to your site's `Gemfile`: ```ruby gem 'jekyll-avatar' ``` And add the following to your site's `_config.yml` file: ```yaml gems: - jekyll-avatar ``` ## Usage Simply add the following, anywhere you'd like a user's avatar to appear: ``` {% avatar [USERNAME] %} ``` With `[USERNAME]` being the user's GitHub username: ``` {% avatar hubot %} ``` That will output: ```html <img class="avatar avatar-small" src="https://avatars3.githubusercontent.com/hubot?v=3&s=40" alt="hubot" width="40" height="40" /> ``` ### Customizing You can customize the size of the resulting avatar by passing the size arugment: ``` {% avatar hubot size=25 %} ``` That will output: ```html <img class="avatar avatar-small" src="https://avatars3.githubusercontent.com/hubot?v=3&s=25" alt="hubot" width="25" height="25" /> ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-avatar-0.1.0 | README.md |