Preview GitHub Pages metadata locally
A year ago, Jekyll sites on GitHub pages gained access to repository and organization metadata with the introduction of the site.github namespace. We recently moved our own site.github implementation to…
A year ago, Jekyll sites on GitHub pages gained access to repository and organization metadata with the introduction of the site.github
namespace.
We recently moved our own site.github
implementation to use the community-driven GitHub metadata Jekyll plugin, meaning it’s now easier to preview sites locally that rely on repository or organization metadata using the exact same process GitHub Pages uses to build your site in production.
To recreate the site.github
namespace when previewing your site locally, assuming you’re using the GitHub Pages gem, simply add the jekyll-github-metadata
gem to your site’s config:
gems:
- jekyll-github-metadata
For more information on using repository and organization metadata, when previewing locally or on GitHub Pages, see the plugin and repository metadata documentation.
Written by
Related posts
Apply now for GitHub Universe 2023 micro-mentoring
As part of our ongoing commitment to accelerate human progress through Social Impact initiatives, we’re offering students 30-minute, 1:1 micro-mentoring sessions with GitHub employees ahead of Universe.
The 2023 Open Source Program Office (OSPO) Survey is live!
Help quantify the state of enterprise open source by taking the 2023 OSPO survey.
Godot 4.0 Release Party 🎉
We are delighted to host the Godot 4.0 Release Party at GitHub HQ on Wednesday, March 22 from 6:30 pm to 9:30 pm. And you’re invited!