diegomichel / wordpress2hugo

Ruby script to export Wordpress posts into hugo Markdown format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Ruby script to export Wordpress posts into hugo Markdown format.


Languages

Language:Ruby 96.0%Language:Shell 4.0%