forked from michaelbarton/bioinformatics-zen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
35 lines (28 loc) · 874 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
activate :directory_indexes
activate :livereload
activate :s3_sync do |s3_sync|
s3_sync.bucket = 'www.bioinformaticszen.com'
s3_sync.region = 'us-west-1'
s3_sync.acl = 'public-read'
end
activate :blog do |blog|
blog.permalink = "post/{short}/index.html"
blog.sources = "content/:category/:short.html"
end
set :css_dir, 'stylesheets'
set :js_dir, 'javascript'
set :images_dir, 'images'
set :partials_dir, 'partials'
configure :build do
activate :minify_css
activate :minify_javascript
activate :asset_hash
end
after_configuration do
sprockets.append_path File.join(root, "vendor")
end
# silence i18n warning
::I18n.config.enforce_available_locales = false
page "*", :layout => "layouts/default"
page "/", :layout => "layouts/front-page"
page "/atom.xml", :layout => false