Nix is a simple, minimal theme for Hugo
Clone the repository to your hugo theme directory
mkdir themes
cd themes
git clone https://github.com/LordMathis/hugo-theme-nix
Add these parameters to your config.toml
:
[params]
Name = "your_name"
HeaderUsername = "username"
HeaderHostname = "hostname"
About = "info_about_you"
ProfilePicture = "profile_picture_url"
HeaderUsername
and HeaderHostname
will be displayed in navbar on left side in the format: HeaderUsername@HeaderHostname ~ $
.
Optionaly you can add any of these social networks to the [params] section.
GnuPGFingerprint = "your_gpg_fingerprint"
StackExchangeID = "your_stackexchange_id"
StackOverflowID = "your_stackoverflow_id"
GithubID = "your_github"
GitlabId = "your_gitlab"
BitbucketID = "your_bitbucket_id"
TwitterID = "your_twitter"
CodepenID = "your_codepen"
LinkedInID = "your_linkedin"
GoogleplusID = "your_googleplus"
FacebookID = "your_facebook"
InstagramID = "your_instagram"
TelegramID = "your_telegram"
Email = "your_email"
Phone = "+1-201-555-0123"
Mobile = "+1-201-555-0123"
GoogleAnalytics = "your_google_analytics_id"
SlackURL = "https://join.slack.com/..."
PayPalMeID = "https://www.paypal.me/..."
XingURL = "https://www.xing.com/profile/..."
CvURL = "your_cv_url"
To add a menu item add [[menu.header]]
item to config.toml
. For example:
[menu]
[[menu.header]]
name = "posts"
weight = 0
url = "/posts"
To add a submenu item add [[menu.header]]
item with a parent parameter to config.toml
. For example:
[menu]
[[menu.header]]
identifier = "post"
name = "posts"
weight = 0
url = "/post"
[[menu.header]]
parent = "post"
name = "All Posts"
url = "/post"
[[menu.header]]
parent = "post"
name = "categories"
url = "/categories"
[[menu.header]]
parent = "post"
name = "tags"
url = "/tags"
To enable disqus comments add disqusShortname
to your config.toml
.
You can turn off disqus comments per page by adding nocomments = true
to the front matter.
Nix is licensed under the MIT License