Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Jekyll 2.1 - What's new in Jekyll 2?
Search
Jesse Herrick
July 20, 2014
Programming
0
32
Jekyll 2.1 - What's new in Jekyll 2?
A presentation on Jekyll 2.1 features for DaytonRB @ littlelines HQ.
Jesse Herrick
July 20, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
320
為你自己學 Python - 冷知識篇
eddie
1
350
ユーザーも開発者も悩ませない TV アプリ開発 ~Compose の内部実装から学ぶフォーカス制御~
taked137
0
160
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
180
アセットのコンパイルについて
ojun9
0
120
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
1.1k
AIでLINEスタンプを作ってみた
eycjur
1
230
Zendeskのチケットを Amazon Bedrockで 解析した
ryokosuge
3
300
Kiroの仕様駆動開発から見えてきたAIコーディングとの正しい付き合い方
clshinji
1
210
testingを眺める
matumoto
1
140
AI Coding Agentのセキュリティリスク:PRの自己承認とメルカリの対策
s3h
0
200
2025 年のコーディングエージェントの現在地とエンジニアの仕事の変化について
azukiazusa1
24
12k
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
840
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Context Engineering - Making Every Token Count
addyosmani
2
41
How STYLIGHT went responsive
nonsquared
100
5.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Building Applications with DynamoDB
mza
96
6.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Transcript
Jekyll 2.1 What’s new in Jekyll 2?
Jesse Herrick https://jesseherrick.io http://www.sitepoint.com/author/jherrick/ ! @JesseHerrick
Jekyll? Markdown + Liquid Templates = Awesomeness (static site)
Yes, like this. …sort of.
CMS’s are…
Slow
Hackable ! (not the good kind)
11 Million Websites Hacked Per Year
Jekyll is…
Fast Loading Times (lower is better) Homepage Post w/ 1
Picture Post w/ no Picture Average of All 0ms 70ms 140ms 210ms 280ms Dynamic Site Jekyll (static)
Hackable ! (the good kind — but also very secure)
Easy to Deploy https://pages.github.io http://jekyllrb.com/docs/deployment-methods/
We get it. Jekyll is awesome.
So what’s new in Jekyll 2?
Native SCSS/SASS Support _config.yml # other config sass: style: :compressed
--- --- // other styles css/styles.scss
Native CoffeeScript Support js/my-coffee.coffee --- --- ! # coffeescript below
Collections? _config.yml # other config collections: chapters: output: true permalink:
/chapter/:path/ . ├── _chapters │ ├── 1.md │ ├── 2.md │ └── 3.md ├── _config.yml ... other files http://myawesomebook.com/chapter/1 http://myawesomebook.com/chapter/2 http://myawesomebook.com/chapter/3
But wait! There’s more. --- layout: default --- ! <ul>
{% for chapter in site.chapters %} <li> <!-- assuming name in frontmatter --> <a href="{{ chapter.url }}">{{ chapter.name }}</a> </li> {% endfor %} </ul> chapters/index.html
Custom Markdown! _plugins/cool_md.rb require 'jekyll' require 'cool_md_processor' ! class Jekyll::Converters::Markdown::CoolMD
def initialize(config) @site_config = config end ! def convert(content) CoolMD.new(@site_config).to_html(content) # => *MUST* return the rendered HTML as a string end end
Let’s recap. • Jekyll rocks. • It’s better than your
CMS. • It’s fast. • It’s super hackable. (yes, the good kind) • It has great docs.
Questions? Also, http://jekyllrb.com is your best friend. @jesseherrick · jesseherrick.io