zlacker

[parent] [thread] 1 comments
1. blakes+(OP)[view] [source] 2025-09-30 12:00:16
What are you using to convert Wordpress to static pages?
replies(1): >>loloqu+462
2. loloqu+462[view] [source] 2025-09-30 23:17:52
>>blakes+(OP)
https://github.com/ashishb/wp2hugo

It dumps all pages and articles as markdown with most Wordpress metadata as front matter metadata, and all comments in a separate yaml file which can be processed as needed. It creates a minimal theme with the necessary templates to do a basic static render of the content. It does need some theme and template tweaking to match Wordpress url structure and ensure all pages end up in the same url/permalink.

I also used a Wordpress hugo exporter plug-in about 3 years ago - worked mostly the same.

Using Hugo still allows me to more easily add content to the site while maintaining a consistent templating and design.

I also experimented with doing a simple static dump of html as generated by Wordpress - I tried two ways, using wget —-mirror which kinda worked but generated a lot of redundant pages, and a Wordpress plugin called “simply static” which was supposed to do something similar but in the end didn’t work.

In the end I decided against the static dump because it would have entirely “frozen” the site in time - I did want the ability to add content down the line; or change the design without having to modify the content significantly. Archiving sites verbatim is best left to the experts at archive.org :)

[go to top]