emersonthis / migrate-wordpress-to-eleventy

Converts the XML export from WordPress into markdown files compatible with Eleventy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate WordPress to Eleventy

Converts the XML export from WordPress into markdown files for Eleventy

Tested on WordPress 5.5.1

Installation

  • Requires Node 14
  • npm install

Usage

First, log into your WordPress site and use the native Export tool to export your posts only.

From the root of this project...

npm run start -- <path to exported XML file>

TODO

  • Adds post title to front matter
  • Adds post categories to front matter (as tags)
  • Maps publication date to file name
  • Converts post contents from HTML to markdown
  • Does not migrate images
  • Does not handle excerpts
  • Does not handle permalinks
  • Properly escape titles with double quotes in them?

About

Converts the XML export from WordPress into markdown files compatible with Eleventy


Languages

Language:JavaScript 100.0%