Skip to content

wjessop/wordpress_to_hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A small wordpress.com to Hugo conversion program

  1. To use, download the XML and rar files from wordpress.com and unpack/unzip them somewhere on your local machine
  2. Clone this repo and install the deps
  3. Edit the code to point to the output, XML file and source image directories
  4. Run go run main.go

You should end up with a directory structure that looks like this containing markdown files and images per article:

BaseDir/
  content/
    posts/
      Some-post-title/
        index.md
        ImagesDir/
          post-image-1.jpg
          post-image-2.png
      A-different-post-title/
        index.md
        ImagesDir/
          post-image-for-this-other-arcicle.jpg

I wrote more details, and caveats etc. on my blog.

About

A small program for converting a wordpress XML dump to Hugo files, including images.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages