Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A clean, minimal blog theme for Hugo with dark/light mode, lazy loading, and code highlighting.
LeaveIt is a clean, minimal blog theme for Hugo that turns Markdown content into a static blog with dark/light mode, lazy-loaded images, and automatic code highlighting.
LeaveIt is a clean, elegant, simple-but-not-simpler blog theme for the static site generator Hugo. It takes Markdown files from your content directory and renders them into a complete blog site, including post pages, static pages, and a configurable home page. The theme is developed by LiuZhichao and released under the MIT license.
.theme-switch to trigger the switch.featured_image field in the front matter, which is displayed on the post.home_mode = "post" in the site configuration.assets/css/_variables/default.scss and add your own CSS in assets/css/_custom.scss.LeaveIt is designed for bloggers and developers who want a clean, fast blog without JavaScript-heavy frameworks. It suits personal blogs, portfolio sites, and documentation sites that rely on Markdown content and static hosting. Because it is built on Hugo, it works well for users comfortable with the Hugo directory structure and configuration.
content/posts directory and generate a static blog with a profile home page.LeaveIt works like a standard Hugo theme. After cloning the repository into the themes directory, you set theme = "LeaveIt" in config.toml and copy the example configuration from the exampleSite folder. You then create content as Markdown files, placing posts in content/posts and static pages in content. To build the site, run HUGO_ENV=production hugo --gc --minify, which enables production features like minification.
Pros:
Cons:
LeaveIt is free and open-source. It is released under the MIT license, and all bundled resources (lazysizes, lightGallery, code-prettify) are also open-source.
These are directly linked in the theme's "See Also" section.
Yes, LeaveIt is free and open-source. It is licensed under the MIT license, which allows personal and commercial use with attribution.
LeaveIt requires the Hugo "extended" Sass/SCSS version because the theme's styles are written in SCSS. The standard Hugo binary will not work.
Dark mode can be toggled by clicking the heart icon in front of the blog title. You can also create your own toggle element by adding the class .theme-switch to an HTML element.
By default, the home page displays a personal profile. To show posts instead, add home_mode = "post" to the [params] section of your config.toml file.