Up and running with the awesome hugo
Hello World!
I am kickstarting this website today. I’ve been switching themes and platforms. First I tried Jekyll, but it didn’t turn out that good for me. Then I started writing a new website from scratch and dropped it in between :P. Now, I am using hugo, seems pretty cool and easy to use until now. Let’s hope I stick around this one for a while atleast.
I am using Ghostwriter theme and hope to stick with it.
Setup
The setup was pretty simple:
- Install hugo.
Scaffold & Install themes.
hugo new site meetmangukiya cd meetmangukiya/ hugo new post/hello-world.md cd themes git clone https://github.com/roryg/ghostwriter cd ghostwriter npm install cd ../../ vim config.toml # configuration ... hugo server --theme=ghostwriter --buildDrafts # go check localhost:1313 # There, you have a website running already :D
Build and deploy
hugo -t ghostwriter cd public git init git remote add origin <remote> git add * git commit -m ":rocket: Deploy" git push -u origin master
Automating deploy: This goes in
deploy.sh
hugo -t ghostwriter cd public/ git checkout master git add * git commit -m "Website Update $(date -u)" git push
That’s it, isn’t it just wonderful!