jekyll-meta-plugin

jekyll-meta

RubyGem Version Build status

A lightweight Jekyll plugin that injects useful build-time metadata (Jekyll version, environment, Ruby version, etc.) into Liquid templates.

Features

Installation

  1. Add to your Gemfile:

    group :jekyll_plugins do
      gem "jekyll-meta"
    end
    
  2. Bundle install:

    bundle install
    
  3. Enable the plugin in your _config.yml:

    plugins:
      - jekyll-meta
    
  4. Rebuild your site:

    bundle exec jekyll build
    

Usage

Use the following Liquid variables anywhere in your templates, pages, or posts:

Jekyll version: 
Major version: 
Environment: 
Ruby version: 

Example

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>jekyll-meta-plugin</title>
</head>
<body>
  <footer>
    <p>Built with Jekyll v (v)</p>
    <p>Environment: </p>
    <p>Ruby: </p>
  </footer>
</body>
</html>

Configuration

No additional configuration is required. The plugin works out of the box once enabled.

Compatibility

Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a pull request

Please ensure all tests pass and follow the existing code style.

License

Licensed under the MIT License. See LICENSE for details.