site.github
Jekyll plugin to propagate the site.github
namespace and set default values for use with GitHub Pages.
site.github
namespace with repository metadatasite.title
as the repository name, if none is setsite.description
as the repository tagline if none is setsite.url
as the GitHub Pages domain (cname or user domain), if none is setsite.baseurl
as the project name for project pages if none is setUsage 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"
:warning: 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.