-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
43 lines (33 loc) · 922 Bytes
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'extensions/sitemap'
# Markdown engine
set :markdown_engine, :redcarpet
# Asset directories
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
# Livereload
activate :livereload
activate :sitemap_generator
# Build-specific configuration
configure :build do
activate :minify_css
activate :minify_javascript
activate :gzip
activate :favicon_maker
# Enable cache buster
# activate :cache_buster
# Use relative URLs
# activate :relative_assets
# Compress PNGs after build
# First: gem install middleman-smusher
# require "middleman-smusher"
# activate :smusher
# Or use a different image path
# set :http_path, "/Content/images/"
end
data.speakers.speakers.each do |speaker|
proxy "/speakers/#{speaker.twitter}.html", "/speaker.html", :locals => { :speaker => speaker }
end
configure :build do
ignore 'speaker.html.haml'
end