-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
47 lines (40 loc) · 1.18 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
###
# Blog settings
###
Time.zone = "US/Mountain"
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true ,
:smartypants => true ,
:autolink => true
activate :syntax
activate :directory_indexes
page "blog/*", :layout => :blog_layout
activate :blog do |blog|
blog.permalink = "{year}/{month}/{day}/{title}.html"
blog.sources = "blog/{year}-{month}-{day}-{title}.html"
#blog.tag_template = "tag.html"
#blog.calendar_template = "calendar.html"
#blog.sources = "blog/{article-number}.html"
#blog.permalink = "/{article-number}.html"
# Enable pagination
blog.paginate = true
blog.per_page = 1
blog.page_link = "page/{num}"
end
page "/feed.xml", layout: false
data.blog_roll.each do |comic|
proxy "/#{comic.number}.html", "/comic.html", :locals => {:comic => comic}, :ignore =>true
end
# Reload the browser automatically whenever files change
activate :livereload
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
#sitemap
activate :sitemap, :hostname => "http://www.manvsmagic.com"
# Build-specific configuration
configure :build do
activate :minify_css
activate :minify_javascript
#activate :imageoptim
end