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.
Show HN: I made a service to convert WordPress blogs to Hugo
21–30 of 45 posts
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#22Thanks for sharing @symkat, love seeing developer side projects. Was curious why you picked Hugo over something like Astro. I'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't done much evaluation of Hugo yet.
Thank you for commenting! Really the reason I picked Hugo is because that's what the person I was talking to wanted. He'd only found contractors who would charge more than he wanted to pay to do a manual conversion, and said even something that just got his pages and posts over would be worthwhile to him. I have more experience with Jekyll. In fact, I had tried to start a hosted platform with a CMS for it that I open…
Hopefully moving to a more actively supported static site generator will benefit us but its also a lesson to us that we need to keep track of continued support of apps we rely on. It's easy to just build and forget something and then there's a fire drill when you have to go back and change something that hasn't been re-deployed in a while.
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#23I 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?
The vast majority of WordPress sites are static sites with no use for comments.
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#24Re: Show HN: I made a service to convert WordPress blogs to Hugo
#25WordPress is not just content - it's plugins such as WooCommerce, GiveWP, email marketing, BuddyPress, membership plugins, etc.
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#26WordPress is not just content - it's plugins such as WooCommerce, GiveWP, email marketing, BuddyPress, membership plugins, etc.
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#27Are you keeping URLs stable? That was tricky for me IIRC, along with RSS.
(The very trickiest bit was probably specific to me. I still have inbound links with the page in a "/?p=3" kind of query param, which I think was the WordPress default 20-odd years ago. I didn'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!)
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#28WordPress is not just content - it's plugins such as WooCommerce, GiveWP, email marketing, BuddyPress, membership plugins, etc.
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#29Because isn't this just "WordPress 2 Markdown".
Unless I'm mistaken, this does not recreate your WordPress theme/template to be used in Hugo (nor nothing specific to Hugo).
It's just exporting your blog posts from WordPress database into a Markdown file format.
Note: still very useful, I just find the name confusing.
Re: Show HN: I made a service to convert WordPress blogs to Hugo
#30And how do I upload an image of my cat to my all new Hugo site? WP lets me drag/drop or upload media very very easily. Has done for years. Hugo? or indeed most SSG's?
https://gist.github.com/lewiscollard/c6651648d1c20144ed89e16...
Copy that into your "layouts/shortcodes/image.html" and use it as
{{}}
If you just want to upload it to _not_ reference it in a post/page, copy it into your `static` directory and it'll be passed through when the site is built.Hope that helps!