-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
31 lines (26 loc) · 923 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
set :build_dir, 'build'
set :haml, :format => :html5
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false
page "/feed.xml", layout: false
page "/notfound.html", :directory_index => false
page "/tos.html", :directory_index => false
page "/pp.html", :directory_index => false
ignore 'CNAME'
activate :directory_indexes
activate :syntax, :line_numbers => true
# activate :gzip, {:exts => %w[.css .htm .html .js .json .mjs .svg .xhtml], :overwrite => true}
configure :development do
activate :livereload
end
Haml::TempleEngine.disable_option_validator!
set :haml, {:ugly => true, :format => :html5 }
set :relative_links, true
configure :build do
activate :asset_hash, :ignore => [/^assets\/downloads/, /^assets\/images\/brand/]
activate :minify_css
activate :minify_javascript
end