Dev Note: Develop my personal site with Hexo (1)

Questions

  • I always forget the prompts of Hexo, although its prompts are really simple! LOL…

In using Hexo

  • I have built a personal web blog site by using Hexo, and deployed configuration files to connected to Github page in a really simple way.
  • I might write a blog to summarize how I did it soon…?
  • In addition, I write blogs with Obsidian and Obsidian do powerfully support almost every thing.

Editing blog pages

  • Create a directory in source/_posts/ as new category (if necessary)
  • Create plain .md file as new post in a specific directory (e.g., source/_posts/Dev Note)
  • Insert the template with Obsidian core plugin Insert template
    • Activate it in Settings -> Core plugins
    • Access to Settings -> Template
    • Refer the location and format of date
  • Write anything you want to post…

Generate Hexo

Hexo almost done everything so just follow the steps:

  • Open terminal
  • Cd to directory (e.g., in my case, HexoPage/00_blog)
  • Run following
    1
    hexo g

Quite simple, right? It is really a myth why I always forget it…

Serve Hexo

We could check and preview whether edited page is well functioned by serve the site locally.

  • Run
    1
    hexo s
  • Access to the localhost Hexo serves with Chrome or Safari
  • Check if it works

Deploy Hexo

Simply deploy page to github.io

  • Run
    1
    hexo d
  • Review and approve the request in github project management page

Keywords:
#dev_note #Hexo