Skip to content
HTML CSS JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Updated demo link and screenshot Apr 8, 2017
layouts Should fix problem with gohugoio/hugoThemes#682: Sep 20, 2019
static update font and font-weight Jan 20, 2016
.gitignore init gulp workflow for building assets Aug 17, 2015
LICENSE.md massive updates, but still in beta. Apr 26, 2015
README.md Should fix problem with gohugoio/hugoThemes#682: Sep 20, 2019
gulpfile.babel.js init gulp workflow for building assets Aug 17, 2015
package.json init gulp workflow for building assets Aug 17, 2015
theme.toml update README and theme.toml Apr 30, 2015

README.md

Slim

Slim is a minimal, clean and beautiful theme for Hugo.

Slim screenshot

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

  1. Add your Disqus Shortname to the site config file;
  2. You can enable Disqus per-post, by adding comments: true (YAML) or comments = true (TOML) in the front matter of your post. To disable it, you can either change the value to false or just not include comments variable and its value at all.

Build your site

hugo server -t slim

License

Open sourced under MIT license.

You can’t perform that action at this time.