Classic is forked from the XMin theme, written by Yihui Xie. I made a fresh remix of it for my personal blog. It provides some simplifications, highlight.js
for syntax highlighting, and a slick, minimal fixed header.
1: Install Hugo.
brew install hugo
2: Create a new site.
hugo new site classic
3: Change to themes dir.
cd classic/themes
4: Clone the repo
git clone [email protected]:goodroot/hugo-classic.git
5: Copy the contents of the scaffold
directory into {dir}/classic.
6: Enjoy and customize to your hearts content!
To make new posts, simply use the command line:
hugo new post/good-to-great.md
To adjust the header colour, head to static/css/style.css
and change...
header {
position: relative;
top: 0;
width: 100%;
height: 1.75rem;
font-family: Roboto, "Liberation Mono";
font-size: .875rem;
background: #613DC1;
border-bottom: 1px solid #000;
z-index: 99
}
... background:
to any colour value you'd like!
For header font:
header a {
color: #fff;
line-height: 1.75rem;
padding: 0 0.5rem
}
Change color:
to a nice matching colour.