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.

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

  1. Install Hugo

    brew update; brew install hugo

  2. Create site

    hugo new site <SITENAME>

  3. Create new post

    hugo new post/<Filename.md>

  4. 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.

  5. 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