Skip to content

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

License

Notifications You must be signed in to change notification settings

jekyll/github-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a605d04 · Dec 29, 2023
Apr 4, 2023
Dec 22, 2023
Dec 22, 2023
May 18, 2022
Dec 22, 2023
Oct 22, 2018
Mar 8, 2021
Dec 3, 2017
Mar 2, 2023
Apr 20, 2022
Jan 7, 2020
May 18, 2022
Dec 22, 2023
Jan 3, 2018
Dec 3, 2017
Mar 1, 2023
Mar 2, 2023

Repository files navigation

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