Skip to content

Instantly share code, notes, and snippets.

@manbearwolf
Last active October 26, 2017 05:44
Show Gist options
  • Save manbearwolf/74d89b85034c7310ab99372bb046efaf to your computer and use it in GitHub Desktop.
Save manbearwolf/74d89b85034c7310ab99372bb046efaf to your computer and use it in GitHub Desktop.
"Real" Conversion of Blogger to Jekyll format (XML Blogger export) (Posts export .xml Not theme ex: blog-08-23-2017.xml)
require "jekyll-import";
JekyllImport::Importers::Blogger.run({
"source" => "./blog-08-23-2017.xml",
"no-blogger-info" => false, # not to leave blogger-URL info (id and old URL) in the front matter
"replace-internal-link" => false, # replace internal links using the post_url liquid tag.
})
@manbearwolf
Copy link
Author

manbearwolf commented Aug 23, 2017

(command terminal).(Installation & procedure)

gem install jekyll-import

(http://import.jekyllrb.com/docs/installation/)

ruby -rubygems blog.rb

(PowerShell Admin)

@manbearwolf
Copy link
Author

manbearwolf commented Aug 23, 2017

Creates all posts .html in _posts directory from blogger export file. (blog-08-23-2017.xml)

@manbearwolf
Copy link
Author

manbearwolf commented Aug 25, 2017

free
ms visual code

plugin:
AB HTML Formatter

Uncompress HTML
alt-shift-F

.xml conversion compresses html

@manbearwolf
Copy link
Author

manbearwolf commented Aug 25, 2017

was not used for blog completely (but a little bit)...

(the images are setup different) (Use href (fixes captions.html) not image src in blog theme for better resolution and correct setup).

/**
It does look correct with it (OK, compared). (using html files by themselves, without changing anything).
*/

Used in some renamed html to markdown and edited...

@manbearwolf
Copy link
Author

manbearwolf commented Sep 20, 2017

@manbearwolf
Copy link
Author

manbearwolf commented Oct 25, 2017

Completely converted HTML to markdown for speed. (and condensed code to markdown only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment