TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I made a service to convert WordPress blogs to Hugo

98 pointsby symkat4 months ago
Hi Hacker News!<p>I made this project to read a WordPress export and create the markdown files for Hugo. It&#x27;ll speed up the process of moving your blog over to Hugo and let you avoid a bunch of manual work.<p>It came about when I was talking to somebody who was trying to move their site over and didn&#x27;t want to manually copy and reformat all their posts. They had trouble finding a tool to do it, so I wrote one.<p>I want to make sure it&#x27;s useful to people before charging them, so it&#x27;ll give you a download with 3 pages and 5 blog posts converted for free and without asking for any information. If you like what you see, there is a one-time charge through Stripe to convert everything.<p>I hope you find it useful, and I welcome any and all feedback on it!<p>Thanks for reading!

12 comments

gpjt4 months ago
That&#x27;s pretty cool! I ported my own WP blog to a static site generator (my own but with a format inspired by Hugo) a while back and hacked together a script with wpparser and some custom code to spit out markdown (it was a while back but I think just regexes). It got me the bulk of the way there but I still had to go through every page and tweak it to get everything just right. Would happily have paid $150 to avoid that.<p>Are you keeping URLs stable? That was tricky for me IIRC, along with RSS.<p>(The very trickiest bit was probably specific to me. I still have inbound links with the page in a &quot;&#x2F;?p=3&quot; kind of query param, which I think was the WordPress default 20-odd years ago. I didn&#x27;t want to make the root URL for the site non-static to handle that, so I wound up putting some JS in my index page template that checks for that kind of thing. If it spots it, it changes window.location to a specific URL that is delegated a Flask site that knows where to redirect people. Link in bio if anyone wants to see how it works. I should probably blog about it sometime!)
评论 #42805552 未加载
评论 #42798877 未加载
评论 #42798819 未加载
jayemar4 months ago
I may be wrong here, but I understood Hugo sites to be static sites, therefore not supporting comments, for example. How does your tool handle migrating a WordPress side with comments to a Hugo site?
评论 #42795866 未加载
评论 #42795870 未加载
revicon4 months ago
Thanks for sharing @symkat, love seeing developer side projects.<p>Was curious why you picked Hugo over something like Astro. I&#x27;m migrating a site off of Jekyll and have found Astro has a lot of interesting features if I want to use them but is at its heart a static site generator and seems to be a pretty easy lift to migrate to. Haven&#x27;t done much evaluation of Hugo yet.
评论 #42797402 未加载
评论 #42798834 未加载
binary_slinger4 months ago
The real money is in converting sites with plugins and retaining the functionality which in many cases isn’t static. The copying of data to another tool is the easy part.
评论 #42797423 未加载
markx24 months ago
And how do I upload an image of my cat to my all new Hugo site?<p>WP lets me drag&#x2F;drop or upload media very very easily. Has done for years.<p>Hugo? or indeed most SSG&#x27;s?
评论 #42798554 未加载
评论 #42801654 未加载
tiffanyh4 months ago
Isn&#x27;t this a bit deceiving to call this &quot;WordPress 2 Hugo&quot;?<p>Because isn&#x27;t this just &quot;WordPress 2 <i>Markdown</i>&quot;.<p>Unless I&#x27;m mistaken, this does not recreate your WordPress theme&#x2F;template to be used in Hugo (nor nothing specific to Hugo).<p>It&#x27;s just exporting your blog posts from WordPress database into a Markdown file format.<p>Note: still very useful, I just find the name confusing.
评论 #42798640 未加载
nikolay4 months ago
WordPress is not just content - it&#x27;s plugins such as WooCommerce, GiveWP, email marketing, BuddyPress, membership plugins, etc.
评论 #42798446 未加载
评论 #42798439 未加载
评论 #42798494 未加载
pimlottc4 months ago
Part of me was really hoping this was going to be for the Hugo interactive fiction game engine [0]<p>0: <a href="https:&#x2F;&#x2F;www.ifwiki.org&#x2F;Hugo" rel="nofollow">https:&#x2F;&#x2F;www.ifwiki.org&#x2F;Hugo</a>
codenote4 months ago
That&#x27;s a great tool! When I migrated from WordPress to Astro before, I used my own custom script for the migration. I think having tools like this is very convenient and useful.
alok-g4 months ago
Does it handle themes, plugins, etc., as well? Thx.
评论 #42795877 未加载
GlacierFox4 months ago
$150 haha. Wtf.
评论 #42795811 未加载
JTyQZSnP3cQGa8B4 months ago
Good. But I do wonder why we&#x27;re flooded with &quot;services&quot; like that when a simple open-source Python script could do this. $150 FFS. I hope you have clients but the open-source dev inside me is dying a bit.<p>Edit: 413 Request Entity Too Large.
评论 #42795691 未加载
评论 #42795697 未加载
评论 #42795932 未加载