A long-lived project that still receives updates
The site.github namespace
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
~> 3.12.0

Runtime

>= 3.4, < 5.0
>= 4, != 4.4.0, < 7
 Project Readme

GitHub Metadata, a.k.a. site.github

Actions CI Windows Build status

Jekyll plugin to propagate the site.github namespace and set default values for use with GitHub Pages.

What it does

  • Propagates the site.github namespace with repository metadata
  • Sets site.title as the repository name, if none is set
  • Sets site.description as the repository tagline if none is set
  • Sets site.url as the GitHub Pages domain (cname or user domain), if none is set
  • Sets site.baseurl as the project name for project pages if none is set

Usage

Usage of this gem is pretty straight-forward. Add it to your Gemfile like this:

gem "jekyll-github-metadata"

Add it to your _config.yml:

plugins:
  - "jekyll-github-metadata"

⚠️ If you are using Jekyll < 3.5.0, use the gems key instead of plugins.

Then go ahead and run bundle install.

Now, whenever you build or serve with Jekyll, the jekyll-github-metadata plugin will run.

Further reading