Skip to content

Ruby script to export Wordpress posts into hugo Markdown format.

Notifications You must be signed in to change notification settings

diegomichel/wordpress2hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published