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-metadataFor 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
 
					Introducing Agent HQ: Any agent, any way you work
At Universe 2025, GitHub’s next evolution introduces a single, unified workflow for developers to be able to orchestrate any agent, any time, anywhere.
 
					Octoverse: A new developer joins GitHub every second as AI leads TypeScript to #1
In this year’s Octoverse, we uncover how AI, agents, and typed languages are driving the biggest shifts in software development in more than a decade.
 
					Announcing the 2025 GitHub Partner Award winners 🎉
GitHub celebrates its 2025 Partner Award winners, honoring global, regional, and technology partners for driving innovation, collaboration, and impact across the developer ecosystem.