Transferring the Content

The most challenging part of any migration is extracting the content from the existing site and getting it presentable in a format the new site can use. Thankfully, with Hugo’s rising popularity, there are a few tools and scripts available that handle a lot of the heavy lifting for you. But how you do it depends on which platform you’re migrating from.

If you’re migrating from a WordPress blog, you can use the WordPress-to-Hugo Export plugin.[59] This plugin exports all of your content, placing each post in its own Markdown file. The plugin preserves the original post’s permalink, and places it in the front matter section of the corresponding Markdown file. It also stores the draft status.

If you have a self-hosted WordPress ...

Get Build Websites with Hugo now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.