Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An easy-on-the-eyes Hugo blog theme with dark mode and social sharing features.
min_night is a Hugo blog theme with a night-mode toggle and social sharing enhancements, forked from the Minimal theme by Nathan Day.
min_night is a Hugo static site theme built on the Minimal theme (by calintat) and maintained by Nathan Day (nathancday). It takes Markdown content from Hugo's content directory and generates a blog with day and night display modes, OpenGraph and TwitterCard meta tags, syntax highlighting, and integrated comment options. The theme is designed for bloggers who want a clean, readable interface that works well in both light and dark environments, and a live demo is hosted at natedayta.com.
min_night bundles the features of Minimal with new add-ons for night reading and social sharing. Its concrete capabilities include:
twitter_img front-matter parameter get a large-image summary card, while others fall back to the site logo.highlightLanguages list to control which languages receive special rendering.static/img/favicon/.font parameter loads any Google Font, and Font Awesome v5 icons are available (free set by default, with a documented path for Pro users to swap in their CDN code).min_night suits bloggers and technical writers who publish with Hugo and want a clean, readable theme with a dark mode. It is also a good fit for R users of blogdown, since the theme installs via new_site(theme = "nathancday/min_night"). Developers who like to tune a blog's look through configuration will appreciate the config.toml options for colors, fonts, and highlighting. Site owners who want better-looking links on social media benefit from the built-in OpenGraph and TwitterCard support.
min_night's configuration options let you customize appearance and sharing behavior without touching templates. For example:
accent and backgroundColor parameters in config.toml to change the navbar, footer, and night-mode background color.twitter_img value in a post's front matter to get a large-image summary card on Twitter and OpenGraph previews elsewhere.highlight = true and choosing a style like solarized-dark plus a list of languages.min_night installs as a Git submodule: git submodule add https://github.com/nathancday/min_night.git themes/min_night, then you copy the exampleSite and run hugo server -D. The theme reads config.toml for parameters such as accent, backgroundColor, font, and highlight, and reads post front matter for twitter_img and description fields used by social cards. Updating the theme later is done with git submodule update --remote themes/min_night.
Yes, min_night is an open-source Hugo theme distributed on GitHub, and the repository is publicly accessible.
Yes, the night-mode toggle uses JavaScript and HTML5 storage, so visitors need JavaScript enabled to switch and remember their theme preference.
The theme supports Coral/Talk as an alternative to Disqus. If you enable a talkHost or coralHost, you should comment out or delete the disqusShortName field to avoid including multiple comment plugins at once.
Use RealFaviconGenerator to generate a new set, append /img/favicon/ to the download path, unzip the files, and drop them into static/img/favicon/. The site logo defaults to the 192x192 Android favicon but can be changed via the logo parameter.
The theme includes partials for both Talk v4 (configured with talkHost) and Coral, formerly Talk v5 (configured with coralHost). Coral targets larger news-style sites and requires additional server infrastructure.
