-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
55 lines (40 loc) · 1.01 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
#Markdown
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true
activate :syntax,
:linenos => 'inline',
:anchorlinenos => true,
:linenostart => 2
#Livereload
activate :livereload
Time.zone = "US/Pacific"
activate :blog do |blog|
blog.layout = "article"
blog.sources = "articles/:title.html"
blog.permalink = "articles/:title"
end
page "/feed.xml", :layout => false
page "/sitemap.xml", :layout => false
activate :directory_indexes
###
# Helpers
###
# Methods defined in the helpers block are available in templates
# helpers do
# def some_helper
# "Helping"
# end
# end
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
activate :minify_css
# Minify Javascript on build
activate :minify_javascript
# Use relative URLs
activate :relative_assets
activate :asset_hash
end