A minimal hugo theme -- Vec
Sep 9, 2016Vec
Vec is a minimal, clean and beautiful theme for Hugo.
Demo.
Repo.
Installation
mkdir themes
cd themes
git clone https://github.com/yiichou/hugo-theme-vec vec
See the official docs for more information.
Configuration
You could add params
into your site’s config.toml
file:
[params]
Keywords = "key, 关键字, キーワード"
Description = "There are some words to describe your site"
Avater = "//chou.oss-cn-hangzhou.aliyuncs.com/yii.im/avatar.jpg"
SelfIntro = "Just a worm, seek for true, live in shadow, no more..."
GithubID = "Your Github ID"
TwitterID = "Your Twitter ID"
FacebookID = "Your Facebook ID"
LinkedInID = "Your LinkedIn ID"
GoogleplusID = "Your Googleplus ID"
AnalyticsID = "Your Google Analytics tracking code"
DisqusID = "Your Disqus shortname"
If you use config.yaml
, plz reformat them to yaml.
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 tofalse
or just not includecomments
variable and its value at all.
Enable TOC to your post
If you need show table of contents per-post, adding toc: true
(YAML) or toc = true
(TOML) in the front matter of your post.
Please notice that TOC will be hidden when browser width is less than 920px.
Build your site
Add theme = "vec"
to your config.toml
, then
# Build
hugo
# Run a server
hugo server
OR
hugo -t vec
hugo server -t vec
License
Open sourced under MIT license.