-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
41 lines (35 loc) · 1.09 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
set :haml, { :format => :html5 }
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :markdown_engine, :kramdown
activate :livereload, host: '0.0.0.0', port: '1234'
# Build-specific configuration
configure :build do
activate :minify_css
activate :minify_javascript
activate :asset_hash, ignore: [/^android-chrome/, /^favicon/, /^mstile/,/^safari-pinned/]
end
Time.zone = "Mountain Time (US & Canada)"
activate :blog do |blog|
# This will add a prefix to all links, template references and source paths
blog.prefix = "blog"
blog.permalink = "{year}/{title}.html"
blog.sources = "articles/{year}/{month}-{day}-{title}.html"
blog.layout = "article"
blog.default_extension = ".md"
blog.paginate = true
blog.per_page = 10
blog.page_link = "page/{num}"
blog.taglink = "categories/{tag}.html"
blog.tag_template = "blog/category.html"
end
page "/blog/feed.xml", layout: false
activate :s3_sync do |s3_sync|
s3_sync.bucket = 'stephencaudill.com'
end
helpers do
def page_title(title)
["Stephen Caudill", title].compact.join(" λ ")
end
end