See:
- https://github.com/barryclark/jekyll-now
- http://jekyllrb.com/docs/configuration/
- https://help.github.com/articles/using-jekyll-with-pages/
- http://jekyllbootstrap.com/
- http://www.smashingmagazine.com/2014/08/01/build-blog-jekyll-github-pages/
- http://octopress.org/
Install bundler:
sudo gem install bundler -n /usr/local/bin
On MacOS, see rubygems/bundler#4065 for
the -n /usr/local/bin
option.
Install jekyll:
gem install jekyll -n /usr/local/bin
Install github-pages, see https://github.com/github/pages-gem:
gem install github-pages -n /usr/local/bin
Install rouge (syntax highlighter):
gem install kramdown rouge -n /usr/local/bin
Change directory:
cd peterkeller.github.io/
Run:
bundle exec jekyll serve
Note: jekyll serve
does not work, see
http://stackoverflow.com/questions/31417469/jekyll-ruby-kramdown-missing-dependency:
Access the blog locally with your browser:
Generate site locally without serving a server and watch changing files
(when using serve
then you don't need this):
bundle exec jekyll build --watch
## Update GIT posts to Github
git add --all
git commit -m"My commit"
git push
See blog worldwide:
rake theme:install git="git://github.com/sodabrew/theme-dinky.git"
See http://import.jekyllrb.com/docs/blogger/
Export Blogger posts see https://support.google.com/blogger/answer/41387?rd=1
- Sign in to Blogger.
- Select the blog to export.
- In the left menu, click Settings > Other.
- In the "Blog tools" section, click Export blog > Download blog.
File export will be downloaded to /Users/peter/Downloads. File is
named blog-MM-DD-YYYY.xml
, e.g. blog-01-16-2016.xml
.
### Read export and create/update posts and drafts
Install tool:
sudo gem install jekyll-import
Read the posts (adjust export file name).
Change directory:
cd peterkeller.github.io/
Copy all in one:
ruby -rubygems -e 'require "jekyll-import";
JekyllImport::Importers::Blogger.run({
"source" => "/Users/peter/Downloads/blog-01-16-2016.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.
})'
The contents of _drafts/
and _posts/
are now updated. Note,
that you may now have duplicates *.html
and *.md
.
## Rouge highlighting
Create Rouge CSS style sheet:
rougify style > _rouge.css
Move to _scss directory and link it in styles.scss
See http://jekyllrb.com/docs/pagination/
For the pagination to work
- In
_config.yml
setpaginate: 1
( - Name the landing page to
index.html
. If it isindex.md
it will not work (as stated on the jekyll web site)