Build Website with Github and Hexo

  • Tutorial: https://zhuanlan.zhihu.com/p/26625249

  • Theme configuration Reference: https://theme-next.iissnan.com

  • Theme configuration

    • Style Setting

      • Run the command in the Git Bash to download the Next theme:

        1
        git clone https://github.com/iissnan/hexo-theme-next themes/next
      • Change the default theme to Next by modifying the Extensions part in ./_config.yml

        1
        2
        3
        4
        # Extensions
        ## Plugins: https://hexo.io/plugins/
        ## Themes: https://hexo.io/themes/
        theme: next
      • Set the style of Next theme by changing the Schemes part in ./themes/next/_config.yml. There are three options, including: Mist, Pisces, and Gemini. I prefer the Gemini style so the Schemes part are setting like this:

        1
        2
        3
        4
        5
        # Schemes
        # scheme: Muse
        # scheme: Mist
        # scheme: Pisces
        scheme: Gemini
    • Add a Categories pages

      • Register a new page named Categories

        1
        hexo new page categories
      • Modify the .md in ./source/categories directory

        1
        2
        3
        4
        5
        title: Categories
        date: 2019-02-10 12:39:04
        type: "Categories"
        comments: false
        ---
      • Modify the themes configuration file ./themes/next/_config.yml

        1
        2
        3
        4
        menu:
        home: /
        categories: /categories
        archives: /archives
    • Add Comment Platform

      • Register a disqus: https://disqus.com/
      • Modify the themes configuration files
        1
        2
        3
        4
        disqus:
        enable: true
        shortname: mamba413
        count: true
    • Google Analytics

  • Issues:

Donate