Skip to content

Convert Blogger backup blog posts to hugo compatible markdown documents - updated

Notifications You must be signed in to change notification settings

IDisposable/blog2md

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blogger to Markdown

Convert Blogger backup blog posts to hugo compatible markdown documents

Usage: node index.js b|w <BLOGGER BACKUP XML> <OUTPUT DIR>

For Blogger imports, blog posts and comments (as seperate file <postname>-comments.md) will be created in "out" directory

node index.js your-blogger-backup-export.xml out

If you want the comments to be merged in your post file itself. you can use flag m at the end. Defaults to s for seperate comments file. You can also drop the comments with flag 'd' at the end.

node index.js your-wordpress-backup-export.xml out m

Installation (usual node project)

  • Download or Clone this project
  • cd to directory
  • Run npm install to install dependencies
  • Run node index.js <arg...>

Notes to self

Script to convert posts from Blogger to Markdown.

  • Read XML
  • Parse Entries (Posts and comments) (with xpath?)
  • Parse Title, Link, Created, Updated, Content, Link
  • List Post & Respective comment counts
  • Content to MD - pandoc?
  • Parse Images, Files, Videos linked to the posts
  • Create output dir
  • List items that are not downloaded( or can't) along with their .md file for user to proceed

Why

  • Liked what the original version did, but needed a bunch of tweaks so worth forking. Also don't care about WordPress exports, so killed that off.
  • Needed to port my dead dead dead Blogger to Hugo.

About

Convert Blogger backup blog posts to hugo compatible markdown documents - updated

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%