LeaveIt is a clean, elegant, simple but not simpler blog theme for Hugo.
To see this theme in action, Here is a live demo site which is rendered with this theme and some content for documentation and blog posts.
Clone this repository to your hugo theme directory.
cd themes
git clone https://github.com/liuzc/LeaveIt.git
Next, open config.toml in the base of the Hugo site and ensure the theme option is set to mainroad:
theme = "LeaveIt"
For more information read the official setup guide of Hugo.
Take a look in the exampleSite
folder.
This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.
Copy the config.toml
in the root directory of your website. Overwrite the existing config file if necessary.
A few suggestions to help you get a good looking site quickly:
If you want to change some styling to fit your own website needs, you can edit them:
assets/css/_varibales/default.scss
: You can override the variables in _variables.scss
to customize the styleassets/css/_custom.scss
: You can put your custom css in this fileIt is recommended to put your own favicons
into /static
. They’re easily created via https://realfavicongenerator.net/.
Customize browserconfig.xml and site.webmanifest to set theme-color and background-color for example.
Because some functions are only in production mode, So you need to add a production environment variables when generating your site.
HUGO_ENV=production hugo --gc --minify
This theme write style with scss, So you must download and install the “extended” Sass/SCSS version
.theme-switch
. See hereIf you want to show posts on index instead of a personal profile, just open config.toml in the base of the Hugo site, add the following line to config.toml
[params]
home_mode = "post" # post or other
---
date: 2018-08-29
title: "This One Goes to 11!"
description: "With Go 1.11, Hugo finally gets support for variable overwrites in templates!"
categories: ["Releases"]
featured_image: https://raw.githubusercontent.com/gohugoio/hugoDocs/master/content/en/news/0.48-relnotes/featured-hugo-48-poster.png
---
All feedback is welcome! Head over to the issue tracker.
LeaveIt is licensed under the MIT license. Check the LICENSE file for details. The following resources are included in the theme: