Skip to content

Instantly share code, notes, and snippets.

@manbearwolf
Last active October 26, 2017 05:44
Show Gist options
  • Select an option

  • Save manbearwolf/74d89b85034c7310ab99372bb046efaf to your computer and use it in GitHub Desktop.

Select an option

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

manbearwolf commented Aug 23, 2017

Copy link
Copy Markdown
Author

(command terminal).(Installation & procedure)

gem install jekyll-import

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

ruby -rubygems blog.rb

(PowerShell Admin)

@manbearwolf

manbearwolf commented Aug 23, 2017

Copy link
Copy Markdown
Author

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

@manbearwolf

manbearwolf commented Aug 25, 2017

Copy link
Copy Markdown
Author

free
ms visual code

plugin:
AB HTML Formatter

Uncompress HTML
alt-shift-F

.xml conversion compresses html

@manbearwolf

manbearwolf commented Aug 25, 2017

Copy link
Copy Markdown
Author

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

manbearwolf commented Sep 20, 2017

Copy link
Copy Markdown
Author

@manbearwolf

manbearwolf commented Oct 25, 2017

Copy link
Copy Markdown
Author

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