Hugo Themes
Slim
A slim minimal theme for Hugo.
- Author: Zhe Zhang
- Minimum Hugo Version: 0.13
- GitHub Stars: 107
- Updated: 2019-09-20
- License: MIT
-
Tags:
Blog
Minimal
Note! This theme has not been updated for more than 2 years.
If you are maintainer of this theme, please verify that this theme works with a recent release of Hugo. Then add an appropriate Version Configuration to the theme'sconfig.tomland then finally tag a new version.
Slim
Slim is a minimal, clean and beautiful theme for Hugo.

Demo.
Installation
mkdir themes
cd themes
git clone https://github.com/zhe/hugo-theme-slim slim
See the official docs for more information.
Configuration
You could add params into your site’s config.toml file:
[params]
Subtitle = "Your site's subtitle/tagline"
GithubID = "Your Github ID"
TwitterID = "Your Twitter ID"
AnalyticsID = "Your Google Analytics tracking code"
DisqusShortname = "Your Disqus shortname"
Summary = true # takes true or false
Content = false # takes true or false
# if both are set to true, summary is shown.
# FooterMsg = "Copyright Me 2016. Powered by Hugo."
mainSections = ["post"]
if you use config.yaml, it could look like:
params:
Subtitle: "Your site's subtitle/tagline"
GithubID: "Your Github ID"
TwitterID: "Your Twitter ID"
AnalyticsID: "Your Google Analytics tracking code"
DisqusShortname: "Your Disqus shortname"
Summary: true # takes true or false
Content: false # takes true or false
# if both are set to true, summary is shown
# FooterMsg: "Custom footer message. Powered by Hugo."
mainSections: ["post"]
Enable Disqus to your post
- Add your Disqus Shortname to the site config file;
- You can enable Disqus per-post, by adding
comments: true(YAML) orcomments = true(TOML) in the front matter of your post. To disable it, you can either change the value tofalseor just not includecommentsvariable and its value at all.
Build your site
hugo server -t slim
License
Open sourced under MIT license.