Hello,
FYI: The slides from the Vienna.rb talk titled "Static is the New
Dynamic - Jekyll, Octopress, GitHub Pages n Friends" [1] (use T to
toggle, space or cursor to browse) or read the all-in-page version.
[2]
Topics covered include:
- Dynamic Site Generators
- Static Site Generators
- Why Static?
- Static Site Generator - Folder Structure Example
- Static Site Generators - The Biggies
- Build Your Own Static Site Generator in Ruby in 5 Minutes
- Static is the New Dynamic - Jekyll is the New Ruby Killer App
- Jekyll Getting Started
- Jekyll - Beyond the Basics - Collections, Data
- Dynamic Examples - Videos, Comments, n More
- Jekyll Goodies - HTML Proofer, Prose.io, GitHub.js, Jekyll Planet
Gem, WordPress Jekyll Export Plugin
- GitHub Pages
- Octopress 3.0 Upcoming
Cheers.
[1] http://slideshow-s9.github.io/demos/static.html
[2] https://github.com/geraldb/talks/blob/master/static.md
PS: Bonus: Here's the five minute roll-your-own static site generator:
require 'find'
require 'kramdown'
# 1) make an out directory
SITE_PATH = './_site'
Dir.mkdir( SITE_PATH ) unless File.exist?( SITE_PATH )
# 2) add a markdown converter helper method
def markdown( text )
Kramdown::Document.new( text ).to_html
end
# 3) loop over files and generate hypertext (.html) from markdown (.md)
Find.find('.') do |path|
if File.extname(path) == '.md' # e.g. ./index.md => .md
basename = File.basename(path, '.md') # e.g. ./index.md => index
File.open( "#{SITE_PATH}/#{basename}.html", 'w') do |file|
file.write markdown( File.read( path ) )
end
end
end