Jekyll Auto Image

screenshot of Jekyll Auto Image

jekyll plugin that makes available the first image of a post in the template

Overview

The jekyll-auto-image plugin is an incredibly useful tool for Jekyll users who want to enhance their blog posts with images seamlessly. By providing a simple way to access the first image of a post, it streamlines the process of embedding visuals and ensures that your social media sharing is attractive and engaging. Not only does this plugin help set a default image for posts, but it also facilitates creating dynamic content with minimal fuss.

With compatibility for Jekyll versions starting from 3.0, this plugin is an essential addition for anyone looking to customize their blog's aesthetics and improve the visibility of their posts on platforms like Twitter. Its straightforward setup and functionality make it an attractive option for content creators aiming to elevate their online presence.

Features

  • First Image Access: Easily retrieve the first image of a post using the variable {{ @page.image }} within your templates, simplifying image management.
  • Default Image Setting: Configure a default image for all posts and pages within your _config.yml, ensuring a consistent appearance throughout your site.
  • Fallback Mechanism: The plugin intelligently follows a set of rules to assign an image—checking for a front matter image, first image in content, or default site image based on your specifications.
  • Twitter Card Integration: Enhance your social media sharing capabilities by incorporating Twitter card metadata, providing visually appealing tweets linked to your posts.
  • Easy Installation: Quick integration by adding it to your Gemfile and configuring it in your _config.yml, making it accessible even for those new to Jekyll.
  • Community Contribution: Open to collaboration, allowing users to contribute new features or improvements through GitHub, promoting a collaborative plugin evolution.
  • MIT License: Freely usable and modifiable due to its MIT licensing, encouraging developers to adapt and improve the plugin as needed.