Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 771 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 771 Bytes

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.