-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.rb
46 lines (31 loc) · 896 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
44
45
46
set :protocol, 'https://'
set :host, '2019.rubyconf.tw'
set :images_dir, 'images'
# Activate and configure extensions
# https://middlemanapp.com/advanced/configuration/#configuring-extensions
activate :autoprefixer do |prefix|
prefix.browsers = "last 2 versions"
end
activate :sprockets
activate :asset_hash, :ignore => %r{^images/sponsors/.*}
activate :directory_indexes
activate :livereload
# Per-page layout changes
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false
# Helpers
require 'lib/view_helpers'
require 'lib/models'
helpers ViewHelpers
require 'pry'
# Build-specific configuration
# https://middlemanapp.com/advanced/configuration/#environment-specific-settings
configure :build do
activate :minify_css
activate :minify_javascript
end
activate :deploy do |deploy|
deploy.deploy_method = :git
deploy.build_before = true
end