-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
65 lines (53 loc) · 1.64 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
56
57
58
59
60
61
62
63
64
65
require 'redcarpet'
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true
Time.zone = "UTC"
page "/feed.xml", :layout => false
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
require "lib/inline_svg"
helpers InlineSVG
configure :build do
activate :minify_css
activate :asset_hash
activate :automatic_image_sizes
# activate :relative_assets
end
activate :deploy do |deploy|
deploy.method = :git
deploy.build_before = true
# Optional Settings
# deploy.remote = "custom-remote" # remote name or git url, default: origin
# deploy.branch = "custom-branch" # default: gh-pages
# deploy.strategy = :submodule # commit strategy: can be :force_push or :submodule, default: :force_push
end
# Multiple Blogs
activate :blog do |blog|
blog.name = "blog"
blog.layout = "post"
blog.permalink = ":year/:month/:day/:title"
blog.prefix = "blog"
#blog.tag_template = "tag.html"
#blog.taglink = "tags/:tag.html"
blog.summary_separator = /(READMORE)/
# blog.summary_length = 250
# blog.per_page = 5
# blog.page_link = "page/:num"
end
activate :blog do |blog|
blog.name = "work"
blog.layout = "post"
blog.permalink = ":title"
blog.prefix = "work"
#blog.tag_template = "tag.html"
end
activate :blog do |blog|
blog.name = "jobs"
blog.layout = "jobs"
blog.permalink = ":title"
blog.prefix = "jobs"
#blog.tag_template = "tag.html"
end
activate :directory_indexes
activate :gzip