I’ve migrated the blog tool from Hexo to Hugo (The last moving: Moved from Middleman to Hexo)
Motivation
- Hexo generator was really slow
- Dark mode support
- Multiple Languages support (To write in English too)
- Bored
I could have done 2 and 3 with Hexo, but I was looking for another tool for 4. To be honest, I didn’t think much about it and made a quick decision to use Hugo.
What I had to update
I was able to use Markdown files as it was mostly, but I made some changes.
Directory Structure
- Moved Markdown files (
source
->content/posts
) - Changed path for images
Front Matter
tags
: Delete indents of tag itemsslug
: Added- Hexo converts a file name
yyyy-MM-dd-<path_name>.md
and thepath_name
will be the real path. - Hugo defaults to a file name or
slug
in Front Matter as the real path name. - I wrote a bash script to insert slug from file name. (gist)
- Hexo converts a file name