-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
55 lines (39 loc) · 1.11 KB
/
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
47
48
49
50
51
52
53
54
55
# --------------------------------------
# Config
# --------------------------------------
# ----- Middleman ----- #
activate :livereload
# ----- Assets ----- #
set :css_dir, 'assets/stylesheets'
set :js_dir, 'assets/javascripts'
set :images_dir, 'assets/images'
set :fonts_dir, 'assets/fonts'
# ----- Images ----- #
activate :automatic_image_sizes
# --------------------------------------
# Content
# --------------------------------------
# ----- Blog ----- #
# activate :blog do |blog|
# blog.layout = "layout_article"
# blog.permalink = "{title}"
# blog.prefix = "blog"
# blog.sources = "articles/{title}.html"
# end
# ----- Directories for assets (needs to be activated after blog) ----- #
activate :directory_indexes
# --------------------------------------
# Production
# --------------------------------------
# ----- Prefixing ----- #
activate :autoprefixer do |config|
config.browsers = ['last 2 versions', 'Explorer >= 9']
config.cascade = false
end
# ----- Build ----- #
configure :build do
activate :minify_css
activate :minify_javascript
activate :relative_assets
activate :gzip
end