markdown-plus-plus
A powerful, browser-based content management panel for static site generators.
This is the best migrator for migrating WordPress export to Hugo. It handles several weird edge cases that I encountered while trying to migrate my personal website to Hugo-based site.
While this primarily targets Hugo-based code generation, one can use it to convert WordPress blogs to Markdown-based files that can be used with other systems, for example, Mkdocs or Jekyll.
wp2hugoI want this project to be as widely accessible as possible, while still funding the development costs. This project is completely free for non-commercial and personal usage. Commercial usage is restricted via a license. Feel free to contact me if you want to license this commercially.
v0.146 or later with hugo version commandwp2hugo tool from releasesTools -> Export in your admin dashboardwordpress-export.xml generate the website using $ wp2hugo --source wordpress-export.xml --download-media$ wp2hugo
Usage of wp2hugo:
--authors string
CSV list of author name(s), if provided, only posts by these authors will be processed (using author slug)
--color-log-output
enable colored log output, set false to structured JSON log (default true)
--continue-on-media-download-error
continue processing even if one or more media downloads fail
--content-date-folder-structure string
organize posts/pages by publish date: flat, year, or year-month (default "flat")
--download-media
download media files embedded in the WordPress content
--download-all
download all media files from the WordPress library, whether embedded in content or not
--font string
custom font for the output website (default "Lexend")
--media-cache-dir string
dir path to cache the downloaded media files (default "/tmp/wp2hugo-cache")
--output string
dir path to write the Hugo-generated data to (default "/tmp")
--source string
file path to the source WordPress XML file
--custom-post-types string
CSV list of additional WordPress custom post types to import (using type slug)
$ git clone git@github.com:ashishb/wp2hugo.git $ cd wp2hugo/src/wp2hugo $ make build_prod # `./bin/wp2hugo` will contain the binary and you can use it as `$ ./bin/wp2hugo --source wordpress-export.xml --download-media`
More details on the documentation.
wp2hugo/content/post-type subfolder (hierarchical custom posts are fully supported):--custom-post-types argument when calling the executable. Only post types that have a publishing status (<wp:status> in export XML) matching one of the values of native posts are supported.Provided you don't want to accept new comments, old comments are automatically migrated for all post types (posts, pages and custom). You will need to insert the provided snippet into your relevant theme's single.html template. See the documentation.
feed.xml to Hugo's RSS feed.xmlSummary in HugogooglemapsMore details on the documentation.
wp-content/uploads images embedded in pages to Hugo static files while maintaining relative URLs/data/library.yamlThis repository contains an experimental tool, hugomanager.
I use this tool for the automatic generation of URLs from the title as well as for knowing which blog posts are still
marked as drafts or which ones are scheduled to be published soon.
You can build that via
src/wp2hugo $ make build_hugo_manager ...
src/wp2hugo $ ./bin/hugomanager
A tool for managing Hugo sites e.g. adding URL suggestions, generating site status summary etc.
Usage:
hugomanager [command]
Available Commands:
analyze-backlinks Analyzes backlinks and shows good quality backlinks
completion Generate the autocompletion script for the specified shell
help Help about any command
make-absolute-internal-links-relative Converts all the absolute internal links to relative links
move-post-next-to-attachments Move markdown blog posts with attachments to a single directory
shrink-audio-files Shrinks all audio files to be below a certain bitrate
shrink-images Shrinks all images to be below a certain width/height
sitesummary Print site stats (e.g. number of posts, number of drafts etc.)
suggest-description Suggests description for all the posts that are missing a description in the front matter
suggest-image-alt Suggests image alt text for all the images if missing
suggest-url Suggests URLs for all the pending/future posts that are missing a URL
version Print the version number of HugoManager
Flags:
-a, --author string author name for copyright attribution (default "YOUR NAME")
--config string config file (default is $HOME/.cobra.yaml)
-h, --help help for hugomanager
--viper use Viper for configuration (default true)
Use "hugomanager [command] --help" for more information about a command.
Feel free to send a Pull request if you migrated your website using wp2hugo
more like this
A powerful, browser-based content management panel for static site generators.
An ASP.NET Core tool for generating static websites from MVC views.
A simplified build system for static sites and single-page webapps, based on Webpack 3.
search projects, people, and tags