-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
36 lines (30 loc) · 986 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
# Activate and configure extensions
# https://middlemanapp.com/advanced/configuration/#configuring-extensions
activate :blog do |blog|
blog.sources = 'posts/{title}.html'
blog.permalink = '{title}.html'
blog.layout = 'post'
end
activate :directory_indexes
set :trailing_slash, false
# Layouts
# https://middlemanapp.com/basics/layouts/
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false
# Set default markdown engine for code highlighting
# https://github.com/middleman/middleman-syntax
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true
activate :syntax do |syntax|
syntax.inline_theme = Rouge::Themes::Github.new
syntax.line_numbers = true
end
# Build-specific configuration
# https://middlemanapp.com/advanced/configuration/#environment-specific-settings
configure :build do
activate :gzip
activate :minify_css
end
# Disable warnings
Haml::TempleEngine.disable_option_validator!