29
Git your Jekyll on Alja Isaković @iAlja jekyll git

Git your Jekyll on - WebCamp Ljubljana 2015

Embed Size (px)

Citation preview

Git your Jekyll onAlja Isaković @iAlja

jekyllgit

(and who is this Jekyll?)

How did I meet Jekyll?

In 2006, I started a blog on Blogger. And for a few years, it was good.

Once upon a time …

2013: betrayal! Time to move.

betrayal

Host your own WordPress.And see how deep

the rabbit hole goes.Just move to Tumblr.

You can trust them.

I want the best of both ! both

O hai,

= Ruby-based static website generator

scary flexible puts the dynamic into static

no db/server hassle easy peasy HTML

$ gem install jekyll $ jekyll new awesome-site $ cd awesome-site $ jekyll serve

But how is this better than WordPress?

lightweight, secure, fast

knows the cool kids

allows you to write pages in Markdown <3

supports Sass, CoffeeScript, YAML, JSON, and CSV

track all changes (design, content) w version control templates, plugins, decent documentation easily migrate blogs from other platforms

haz superpowers

+ free GitHub hosting

• GitHub Pages, powered by Jekyll

GitHub <3 Jekyll*

• Awesome because: - host Jekyll projects on any GitHub repository - git push to deploy - your contrib chart is going to look nicer :) - you can accept Pull requests on your blog! - free hosting & use your own domain

GitHub Pages

GitHub <3 Jekyll*

** it’s much more fun to do your own hacking anyway

* the small print: - limited plugin support** - gotta get over your fear of commit-ment - check https://pages.github.com/versions/ - good thing moving is easy, eh?

pics or it didn’t happen!

WebCamp website by Maša Černovšek Logar

Europe Code Week website

Peer 2 Peer University course builder by Erika Pogorelc

Storesense website by Jan Isaković

meh?

_config.yml

index.md

Example 1: site variables

/_posts/2014-11-13-title.md

/projects/index.md

Example 2: Using the blog-aware part

/about/index.md

/_data/press.yml

Example 3: using YAML data

Jekyll doesn’t fit all needs

you need a multi-page website that doesn’t change often

you’re a geek with a blog

you (or somebody you love) want to learn HTML/CSS and

a lil’ bit of programming

But it fits nicely if …

There’s always the evil twin Hyde. Written in Python.

Don’t like Jekyll/Ruby?

There’s always the evil twin Hyde. Written in Python.

There’s always the evil twin Hyde. Written in Python.

There’s almost 100

alternatives.

There’s always the evil twin Hyde. Written in Python.

Don’t like Jekyll/Ruby?

Go here: staticgen.com

CubeSensors <3 Complexity*

* we do hardware after all. Are we’re hiring people who like a good challenge: cubesensors.com/join-us

Python-based static website generator

And now you know about

Go build something fun.

static website generators

@iAlja