Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m in the process of converting a Wordpress blog to a static site. We did have significant comment traffic back in the day so I did look into how to maintain comment functionality. I found Comentario https://docs.comentario.app/en/ which is a standalone comments engine that can be self-hosted and linked to the blog page. Single stand alone Go executable, SQLite database - seems dead simple and has built-in ways to migrate Wordpress comments.

Still, since we do not get that many comments these days, I’ll probably postpone it and just provide a static render of existing / historical comments which does have value for archival and discussion purposes.



What are you using to convert Wordpress to static pages?


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 :)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: