Hello Hugo
This is really a good blog tool.
# I can even show my code in this
def foo(p1):
return p1 * 3
I love to write markdown pages.
- They are elegent.
- They are easy.
- And They are powful.
Ok, what I wrote above is just a testing. Let me note down how to use this tool first, in case I foget…
What is Hugo?
In my word, hugo is a tool used to create a static blog easily and fast. When the blog is set up, we can create and edit posts by just editting the files on our machine. And after building the pages, we will get a static site appears in the public folder. By publishing this folder, you have your blog online!
Hello world
Install Hugo
brew update; brew install hugoCreate site
hugo new site <SITENAME>Create new post
hugo new post/<Filename.md>Download theme and configure it
Just go to http://themes.gohugo.io/ and find a nice looking theme and clone the repo to the theme folder. And edit the config.toml file.
Run Server
hugo server
Disqus Integration
So what we need is a disqusShortname which is a handler that you can create in the disqus website, and copy/paste it to config.toml.
Publish to github.io Page
After running command hugo, the whole site will be generated in the public folder. Commit it in git, and you are good to go.
comments powered by Disqus