One is a minimal blog theme for Hugo, which is forked from onetwothree. A demo is available here.
It provides some new features and simplifications from original onetwothree. I tried to keep it minimal with less configuration to write a blog rather than play with a theme instead.
- Add archives support for all posts in a single page
- Homepage displayed with 7 latest posts default
- Sytax highlighting support with highlight.js
- Google Analytics support
- Full-text RSS support
Clone this repository to your hugo theme directory.
git clone https://github.com/resugary/hugo-theme-one.git themes/one
hugo server -t=one
Create New Posts
Posts should generally go under a content/posts directory, you may start like this:
hugo new posts/hello.md
Create a fixed Page
Fixed pages such as an About page should be present at the root of the content directory:
hugo new about.md
To enable Archives, you should create a new file called archives.md:
hugo new archives.md
# then add the following line in the front matter
Copy the config.toml in the root director of your hugo site.
baseURL = "https://example.com"
languageCode = "en-us"
title = "My Hugo Site"
theme = "one"
googleAnalytics = "UA-123-45"
navigation = ["archives.md", "about.md"]