Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Midnight is a Jekyll theme for GitHub Pages
Midnight is an open-source Jekyll theme from GitHub's pages-themes organization that turns a GitHub Pages repository into a website through a single remote_theme setting in _config.yml.
Midnight is a Jekyll theme built for GitHub Pages, maintained by the pages-themes organization and distributed as the jekyll-theme-midnight Ruby gem. It takes a GitHub Pages site's configuration and Markdown content and renders them as a static website, installed by adding remote_theme: pages-themes/[email protected] to the site's _config.yml together with the jekyll-remote-theme plugin. The repository's minimal test suite verifies that a site using the theme builds successfully, and the project tracks proposed features and known issues in its GitHub Issues.
remote_theme: pages-themes/[email protected] to your _config.yml and include the jekyll-remote-theme plugin to publish the theme without forking the repository or copying theme files.title, tagline, and description from _config.yml, plus optional show_downloads and google_analytics settings./assets/css/style.scss in your site with an @import line that loads the theme, then append your own CSS or Sass; theme Sass variables can be overridden before that import._layouts/default.html into your own /_layouts/default.html for full HTML control, or add files to a local _includes folder for smaller changes such as a custom favicon._includes/head-custom-google-analytics.html in your Jekyll site.site.github.zip_url by setting custom values under a github: key in _config.yml, with each variable name indented two spaces.script/bootstrap to install dependencies, then bundle exec jekyll serve to preview at localhost:4000; run script/cibuild to execute the test suite._config.yml, with no need to learn HTML or CSS layout details._config.yml.title, tagline, and description in _config.yml and publish a clean profile page on GitHub Pages in minutes.assets/css/style.scss to change the look while keeping the default layout.remote_theme: pages-themes/[email protected] to your site's _config.yml and ensure the jekyll-remote-theme plugin is listed.gem "github-pages", group: :jekyll_plugins to your Gemfile to preview locally.bundle exec jekyll serve to preview at localhost:4000, or push to GitHub to build the site.Yes. Midnight is an open-source project maintained by the pages-themes organization, so it can be used on GitHub Pages at no cost.
Midnight is a Jekyll theme that renders a GitHub Pages site as a static website. You install it through the remote_theme mechanism, which keeps theme files out of your own repository.
Create a file at assets/css/style.scss in your site, add the @import statement that loads the theme, and set new Sass variable values before the import line. Custom CSS or Sass added after the import will override the theme's defaults.
Yes. For small changes such as a custom favicon, add files to your local _includes folder. For extensive changes, copy the default layout from _layouts/default.html in the theme's repository into your own _layouts/default.html and edit it.
The theme repository includes a minimal test suite that confirms a site using the theme builds successfully. Run script/bootstrap once, then script/cibuild to run the tests.
