Pacotes necessários pelo APT
Com sudo
sudo apt-get install gem jekyll ruby ruby2.1-dev curl nodejs build-essential
Com root
su
apt-get install gem jekyll ruby ruby2.1-dev curl nodejs build-essential
Depois com o GEM instale o Jekyll Cliente, como o root ou sudo.
gem install jekyll-import
Importe o blog-MM-DD-YYYY.xml do Blogger, Wordpress, … com esse comando
ruby -rubygems -e 'require "jekyll-import";
JekyllImport::Importers::Blogger.run({
"source" => "blog-MM-DD-YYYY.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.
})'
Jekyll Permanlink explicações https://jekyllrb.com/docs/permalinks/
Modelo de Permanlink padrão do Blogger:
/:year/:month/:day/:title.html
Como devem ficar as referentes linhas do _config.yml
paginate_path: "/page:num/"
permalink: /:year/:month/:title.html
Script em JavaScript para pôr no HTML do Modelo da seu blog para redirecionar
<script>
var str = window.location.href;
var str = str.replace("DOMÍNIO_DO_ANTIGO_BLOG", "NOVO_DOMÍNIO_DO_BLOG");
location.href=str;
</script>
Link referente ao passo-a-passo: http://terminalroot.com.br/2016/11/blog-linux-novo-blog-github-jekyll.html
http://terminalroot.com.br/git/