Migration Guide
From Hexo to Hugo
-
Setup Hugo site with menu and theme etc.
-
Create site
hugo 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
cd $SITE_ROOT/content/posts find . -type f | grep -v .md\$ --color=never | xargs rm
-
-
Copy
<hexo_site>/source/_posts/*
to<hugo_site>/static
-
Delete all the Markdown files
cd $SITE_ROOT/static find . -type f | grep -v .md --color=never | xargs rm
-
-
Change
_config.toml
-
Permalink
[permalinks] posts = "/:year/:month/:day/:title/"
-