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 lightning talk @ Belfast Ruby
Search
Coby Chapple
October 01, 2013
Programming
6
180
Jekyll lightning talk @ Belfast Ruby
Presented at Belfast Ruby (
http://www.belfastruby.com/
) on October 1st, 2013.
Coby Chapple
October 01, 2013
Tweet
Share
More Decks by Coby Chapple
See All by Coby Chapple
Product thinking with JTBD
cobyism
0
160
GitHub Flow for Designers
cobyism
1
310
Asynchronous Communication For The Win!
cobyism
0
250
GitHub Flow — AWS Summit Tokyo 2015
cobyism
16
4.1k
Belfast Ruby - Interesting things from the GitHub codebase
cobyism
3
300
Static Sites with Jekyll and GitHub Pages
cobyism
9
1.4k
How design happens at GitHub (Osaka, 2014)
cobyism
0
37
How GitHub Works (GitHub Kaigi, Tokyo, 2014)
cobyism
93
34k
Remote by default (BACON 2014)
cobyism
3
1.4k
Other Decks in Programming
See All in Programming
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
690
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
230
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
Node.js v22 で変わること
yosuke_furukawa
PRO
9
3.2k
Git Lint
bkuhlmann
4
750
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
110
GitHub Copilotのススメ
marcy731
1
200
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
10
990
KATA
mclloyd
15
12k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.5k
Documentation Writing (for coders)
carmenintech
60
3.9k
Raft: Consensus for Rubyists
vanstee
132
6.3k
Web development in the modern age
philhawksworth
202
10k
How STYLIGHT went responsive
nonsquared
92
4.8k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Why Our Code Smells
bkeepers
PRO
331
56k
Unsuck your backbone
ammeep
663
57k
The Mythical Team-Month
searls
216
42k
Transcript
A talk by @cobyism
@cobyism
Jekyll is a static site generator.
Jekyll is popular.
Jekyll understands HTML, Markdown, Liquid templates.
Jekyll gives you static HTML.
Jekyll understands permalinks, categories, tags, pagination, …
Jekyll is great for sites that don’t need server-side logic.
Installation gem install jekyll
New site jekyll new sitename
Running jekyll build
Watching jekyll serve
YAML Frontmaer --- foo: bar --- <p>{{ foo }}.</p> example.html
YAML Frontmaer <p>bar.</p> _site/example.html
Layouts & Includes {% include header.html %} {{ content }}
{% include footer.html %} _layouts/page.html
Layouts & Includes --- layout: page --- Look ma, I’m
content! index.html
Layouts & Includes --- layout: page --- Look ma, I’m
content! index.html
Blogging --- title: Article name --- Look ma, I’m content!
_posts/2013-10-01-article-name.html
Blogging {% for post in site.posts %} <a href=“{{ post.url
}}”> {{ post.title }} </a> {% endfor %} index.html
Blogging for hackers {% highlight ruby linenos %} def foo
puts 'foo' end {% endhighlight %}
Blogging for hackers {% gist 5555251 %}
GitHub Pages is free hosting powered by Jekyll.
GitHub Pages Gem gem install github-pages
Jekyll tricks.
Deploying a locally built site to GitHub pages. https://gist.github.com/cobyism/4730490
Jekyll Authentication
Jekyll testing with Travis CI. language: ruby rvm: - 1.9.3
script: bundle exec jekyll build install: bundle install .travis.yml
Jekyll redirect layout. <meta http-equiv="refresh" content="0;url={{ page.redirect_url }}"> _layouts/redirect.html ---
layout: redirect redirect_url: https://github.com --- somepage.html
Demo https://github.com/cobyism/jekyll-demo
Jekyll has docs. http://jekyllrb.com