forked from mvcss/mvcss.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.rb
More file actions
28 lines (23 loc) · 655 Bytes
/
config.rb
File metadata and controls
28 lines (23 loc) · 655 Bytes
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
activate :livereload
activate :relative_assets
activate :directory_indexes
activate :syntax
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true
set :css_dir, 'assets/stylesheets'
set :js_dir, 'assets/javascripts'
set :images_dir, 'assets/images'
helpers do
def is_page_active(page)
current_page.url == page ? {:class => 'is-active'} : {}
end
def is_section_active(section)
current_page.url.match(section) ? {:class => 'is-section-active'} : {}
end
end
# Build-specific configuration
configure :build do
activate :minify_css
activate :minify_javascript
activate :relative_assets
end