-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
44 lines (39 loc) · 936 Bytes
/
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
activate :syntax, line_numbers: true
activate :relative_assets
activate(
:gemoji,
size: 20,
style: "vertical-align: middle",
emoji_dir: "/use/cdn/instead"
)
activate :blog do |blog|
blog.default_extension = ".md"
blog.tag_template = "tag.html"
blog.calendar_template = "calendar.html"
blog.paginate = true
blog.per_page = 10
blog.page_link = "page/{num}"
end
page "/feed.xml", layout: false
set(
:markdown,
no_intra_emphasis: true,
tables: true,
gh_blockcode: true,
fenced_code_blocks: true,
autolink: true,
strikethrough: true,
lax_html_blocks: true,
space_after_headers: true,
superscript: true
)
set :markdown_engine, :redcarpet
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :relative_links, true
configure :build do
activate :minify_css
activate :minify_javascript
activate :asset_hash
end