Table of Content
- Table of Content
- Web hosting platform
- Migration preparations
- Cleanup and posting on production site
- Next steps
Original site was located at Blogger CloudAlbania but that platform does not provide the editing tools I needed for text processing, e.g. even a simple code formatting took forever.
Here I will post the migration steps in Hugo.
Web hosting platform
Since Hugo pages are static ones, I really needed some simple webhosting that I could place the
/public folder. From hugo’s hosting & deployment recommendations I found that Render was the best choice so far.
To start migrating I created a git repo in GitHub first so I could track changes and allow automation of static web pages publishing through Render.
The tool used was blog2md and the process was fairly easy on my Ubuntu 18.04 on WSL1. The project is based on node.
In my hugo project folder I added a new folder
migration and that was my workdir.
cd your-hugo-project mkdir migration sudo apt install npm nodejs git git clone https://github.com/palaniraja/blog2md.git . npm install
Now we need a backup of the original site in a XML format. In your blogger admin portal, go to Settings –> Other –> Import & back up –> Back up content.
Save the XML in the same
For Blogger imports, blog posts and comments (as separate file
<postname>-comments.md) will be created in “
node index.js b your-blogger-backup-export.xml out
Cleanup and posting on production site
I had to clean up some old posts so I took to the time to review what was needed and then migrate the newly generated .md files in my
Don’t forget to either clean up the migration folder or add a new .gitignore entry so that it does not get pushed in your git repo
blog2md does not import images from blogger. Images need to be copied over as static files in order to fully remove blogger’s dependencies.