Hugo is static site generator written in golang. Wordpress is a tool for remote access to your serve...
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Hugo a static site generator written in GoLang: https://gohugo.io
This repo is based on https://github.com/benbalter/wordpress-to-jekyll-exporter
One-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Hugo.
the_contentfilter prior to export, allowing third-party plugins to modify the output)
post_contentto Markdown Extra (using Markdownify)
post_metaand fields within the
wp_poststable to YAML front matter for parsing by Hugo.
commentsas part of their posts. This features needs to be enabled manually by editing the PHP source code. See file hugo-export.php at line ~40.
config.yamlwith all settings in the
config.yaml, pages, and
.mdfiles for each post in the proper Hugo naming convention.
extension=zip.soline is uncommented in your
Export to Hugofrom the
(I've never tried it, because not a wp.com user)
Export to Hugocommand. If that fails go to the command line run the CLI script with
memory_limit=-1, means unlimited memory usage.
Re Docker: It should be very easy to create a Dockerfile containing everything above mentioned for a one time conversion of the XML file to the Hugo format.
Export to Hugocommand.
If you're having trouble with your web server timing out before the export is complete, or if you just like terminal better, you may enjoy the command-line tool.
It works just like the plugin, but produces the zipfile at
If you want to offer a folder (say a mount point to a huge drive) other than using
/tmpin OS, pass it as the first argument to the script:
php hugo-export-cli.php /YOUR_PATH_TO_TMP_FOLDER/
Alternatively, if you have WP-CLI installed, you can run:
wp hugo-export > export.zip
The WP-CLI version will provide greater compatibility for alternate WordPress environments, such as when
wp-contentisn't in the usual location.
Updates the markdownify library, removes lots of unused code, AFAIK.
with tiny fixes
The project is licensed under the GPLv3 or later