Fork du thème LeaveIt pour hugo
Go to file
2018-09-15 17:02:48 +08:00
archetypes 🎉 initial commit 2018-09-13 00:14:09 +08:00
assets Rename name in theme.toml & fixed lightGallery-all.min.js case 2018-09-15 16:33:05 +08:00
exampleSite Add some articles in exampleSite 2018-09-15 17:02:48 +08:00
images 🎉 initial commit 2018-09-13 00:14:09 +08:00
layouts ✏️ Fixed Common Permalink Issues 2018-09-15 14:46:53 +08:00
resources/_gen/assets 🔧 Add resource directory to work in the basic version of Hugo 2018-09-15 14:41:49 +08:00
static/font 🎉 initial commit 2018-09-13 00:14:09 +08:00
LICENSE 🎉 initial commit 2018-09-13 00:14:09 +08:00
LICENSE.md 🎉 initial commit 2018-09-13 00:14:09 +08:00
README.md ✏️ Update README.md 2018-09-14 21:56:46 +08:00
theme.toml Rename name in theme.toml & fixed lightGallery-all.min.js case 2018-09-15 16:33:05 +08:00

LeaveIt Hugo Theme

LeaveIt is a clean, elegant, simple but not simpler blog theme for Hugo.

hugo-theme-LeaveIt

Demo

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.

中文说明

Features

Getting Started

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.

Site Configuration

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.

Content Suggestions

A few suggestions to help you get a good looking site quickly:

  • Keep blog posts in the content/posts directory, for example: content/posts/my-first-post.md
  • Keep static pages in the content directory, for example: content/about.md
  • Keep media like images in the static directory, for example: static/images/2016/10/screenshot.png

Customizing styles for your website

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 style
  • assets/css/_custom.scss : You can put your custom css in this file

Favicons, Browserconfig, Manifest

It is recommended to put your own favicons

  • apple-touch-icon.png (180x180)
  • favicon-32x32.png (32x32)
  • favicon-16x16.png (16x16)
  • mstile-150x150.png (150x150)
  • android-chrome-192x192.png (192x192)
  • android-chrome-512x512.png (512x512)

into /static. Theyre easily created via https://realfavicongenerator.net/.

Customize browserconfig.xml and site.webmanifest to set theme-color and background-color for example.

Tips

Set production environment when generating site

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

Hugo “extended” Sass/SCSS version required

This theme write style with scss, So you must download and install the “extended” Sass/SCSS version

Questions, ideas, bugs, pull requests?

All feedback is welcome! Head over to the issue tracker.

License

LeaveIt is licensed under the MIT license. Check the LICENSE file for details. The following resources are included in the theme:

Author

LiuZhichao

See Also