/wordpress2hugo

Ruby script to export Wordpress posts into hugo Markdown format.

Primary LanguageRuby

Wordpress2Hugo converter

Script to convert your wordpress posts into markdown format to work with gohugo.io

You will need:

  • A backup of your wordpress database (only the posts table is required).
  • A Mysql server running with the database restored.

Steps

  • Open convert.rb with your favorite editor and edit under section Configuration
            vim convert.rb
  • Execute setup.sh to install the required gems(some may need external libraries.)
            sh setup.sh
  • One time setup.sh ends without errors execute convert.rb
            ruby convert.rb

All your posts will be generated on the specified directory and then you can move them to your hugo content/ folder.

Best regards.