Migrating wordpress to Hugo
-
Use https://github.com/SchumacherFM/wordpress-to-hugo-exporter
-
Convert posts to page bundle https://gohugo.io/content-management/page-bundles/
cd content/posts
find . -maxdepth 1 -type f | grep -v index | while read line; do echo $line; mkdir ${line%%\.md}; mv $line ${line%%\.md}/index.md;done
- Cleanup each post, convert image reference to shortcode equivalent vim search and replace snippets
%s/^M//g
%s/>/>/g
%s/</</g
%s/\\_/_/g
%s/’/'/g
%s/–/-/g
%s/<\/p>//g
%s/<p>//g
%s/</pre>//g
%s/“/"/g
%s/”/"/g
%s/<br\ \/>//g
- Deploy at last. https://gohugo.io/hosting-and-deployment/hosting-on-github/
References:
https://laurakalbag.com/processing-responsive-images-with-hugo/
No comment
Say something
Thank you
Your post has been submitted and will be published once it has been approved.
OK
OOPS!
Your post has not been submitted. Please return to the page and try again. Thank You!
If this error persists, please open an issue by clicking here.
OK