Jekyll Snippets

screenshot of Jekyll Snippets

Library of commonly used snippets for Jekyll sites.

Overview:

Jekyll Snippets is a repository that acts as a library of commonly used code snippets for Jekyll, a popular static site generator. The repository contains snippets for various functionalities such as posts, pages, data manipulation, feeds, and more. These snippets can be used to enhance and customize Jekyll websites.

Features:

  • Posts: Snippets to display lists of posts, organize posts by year, display full posts, show related posts, list posts by category, and implement pagination.
  • Pages: Snippets to create navigation menus with active class highlighting, display page titles with a fallback to the site title, and add additional styles to individual pages.
  • Data: Snippets to extract and list items from specific YAML files in the _data directory.
  • Time: Snippets to display the current year for copyright purposes, as well as the current date in a readable format.
  • Feeds: A basic Atom feed generator snippet to generate RSS feeds for Jekyll sites.
  • Contributing: Information on how users can contribute to the repository by suggesting improvements or submitting bug fixes.
  • License: The repository is licensed under the MIT license.

Summary:

Jekyll Snippets is a valuable resource for Jekyll users, providing a collection of commonly used code snippets for various functionalities. These snippets can be easily incorporated into Jekyll projects to enhance the functionality and customization of the sites. With its clear documentation and permissive MIT license, Jekyll Snippets offers an accessible way for users to contribute and utilize these snippets in their projects.