Migration Guide
From Hexo to Hugo
Setup Hugo site with menu and theme etc.
Create site
1hugo new site . --force
Add theme link
Configure
_config.toml
as per theme specs- Add Menus / Links / Social links
- Change author name
Page migration
Post Migration
Copy
<hexo_site>/source/_posts/*
to<hugo_site>/content/posts
Delete all the non Markdown files
1cd $SITE_ROOT/content/posts 2find . -type f | grep -v .md\$ --color=never | xargs rm
Copy
<hexo_site>/source/_posts/*
to<hugo_site>/static
Delete all the Markdown files
1cd $SITE_ROOT/static 2find . -type f | grep -v .md --color=never | xargs rm
Change
_config.toml
Permalink
1[permalinks] 2posts = "/:year/:month/:day/:title/"
comments powered by Disqus