Skip to content

hackshackers/hh-hugo-cli

Repository files navigation

Hacks/Hackers migration

Migrates WordPress content from the old (pre-2017) WordPress site to the new Hugo site via WP-CLI.

Setup

Place command directory somewhere that WP-CLI can reach it. Then use wp package install or the --require parameter to load the command.

Usage

wp hh-hugo migrate_post         Migrate a single item from WP `post` post type to Hugo `blog` section
wp hh-hugo migrate_all_posts    Migrate all items from WP `post` post type to Hugo `blog` section
wp hh-hugo migrate_group        Migrate a single group
wp hh-hugo migrate_all_groups   Migrate all groups
wp hh-hugo delete_content_dirs  Delete hugo-content and hugo-images directories
wp hh-hugo markdown             Print post_content transformed to Markdown

About

WP-CLI command to migrate from WordPress to Hugo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published