Setup Blog Site

Create Blog Site

  1. Hexo: A fast, simple & powerful blog framework

    1
    npm install -g hexo-cli
  2. Cactus: A simple Hexo theme for a personal website

    1
    2
    hexo init blogsite
    cd blogsite
  3. Optional:Use a custom cactus theme for the site

    1
    2
    3
    4
    git clone https://github.com/probberechts/hexo-theme-cactus.git themes/cactus

    # Change the theme property in the _config.yml file (theme: landscape)
    theme: cactus
  4. Optional: Enable local site search using hexo-generator-search

    Create a page to display the search engine

    1
    2
    npm install hexo-generator-search --save
    hexo new page search

    Put type: search in the front-matter (source/search/index.md).

    1
    2
    3
    title: Search
    type: search
    ---

    Finally, edit the themes/cactus/_config.yml and add a link to the navigation menu.

    1
    2
    3
    nav:
    search: /search/
    ---
  5. Build/generate and run project

    1
    2
    3
    rm -rf node_modules && npm install --force
    hexo generate
    hexo server
  6. Create pages and blog articles

    1
    2
    hexo new page about
    hexo new post "hello world"

Deploy Site

  1. Publish your blog!