-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
56 lines (49 loc) · 1.39 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
56
# Activate and configure extensions
# https://middlemanapp.com/advanced/configuration/#configuring-extensions
activate :autoprefixer do |prefix|
prefix.browsers = 'last 2 versions'
end
activate :sprockets
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :build_dir, 'build'
set :markdown_engine, :redcarpet
set :markdown, fenced_code_blocks: true, smartypants: true, tables: true
configure :build do
activate :minify_css, inline: true
# activate :minify_javascript, inline: true
activate :minify_html
activate :gzip
# activate :asset_hash
activate :imageoptim do |options|
options.manifest = true
options.nice = true
options.threads = true
options.pngout = false
end
end
Time.zone = 'America/Denver'
activate :blog do |blog|
blog.permalink = ':title.html'
blog.name = 'elliotec'
blog.sources = 'posts/{year}-{month}-{day}-{title}.html'
blog.layout = 'post'
blog.summary_length = '150'
# Enable pagination
# blog.paginate = true
# blog.per_page = 10
# blog.page_link = 'page/{num}'
end
activate :livereload
activate :directory_indexes
activate :syntax, line_numbers: false
activate :deploy do |deploy|
deploy.deploy_method = :git
deploy.remote = '[email protected]:elliotec/ellio2.git'
deploy.branch = 'master'
end
# Per-page layout changes
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false