Jekyll Avatar screenshot

Jekyll Avatar

Author Avatar Theme by Jekyll
Updated: 15 Apr 2022
92 Stars

A Jekyll plugin for rendering GitHub avatars

Overview

Jekyll Avatar is a valuable plugin designed for Jekyll users looking to enhance their site with GitHub avatars effortlessly. By simply specifying a GitHub username, this plugin facilitates the quick integration of user avatars that enrich your content visually. Built with performance in mind, it utilizes the GitHub avatar API to ensure efficient caching and parallel loading, even allowing for Retina image upgrades where available.

The installation process is straightforward, requiring minimal configuration within your site’s Gemfile and _config.yml file. Once set up, you can easily display user avatars throughout your site, making the plugin not only user-friendly but also flexible for various use cases.

Features

  • Easy Integration: Simply add a username to display a GitHub avatar throughout your Jekyll site, with minimal setup required.

  • Performance Optimized: Leveraging the GitHub avatar API ensures that images are cached and load efficiently, improving overall site speed.

  • Retina Support: Automatically upgrades avatars to Retina quality when supported, enhancing visual clarity on high-resolution displays.

  • Customizable Size: Allows you to specify the size of the avatar by passing a size argument, making it adaptable to your design needs.

  • Variable Support: You can pass usernames as variables, providing flexibility in dynamic content generation, especially within loops.

  • Lazy Loading Option: For pages with numerous avatars, lazy loading capabilities are available, optimizing loading times and improving user experience.

  • GitHub Enterprise Compatibility: Configurable to work with GitHub Enterprise by setting the appropriate environmental variable for avatar URLs, ensuring seamless integration for enterprise users.

Jekyll Avatar is an essential tool for anyone looking to bring a modern touch to their Jekyll projects while maintaining robust performance and flexibility.