-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
44 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
42
43
44
activate :directory_indexes
set :relative_links, true
set :haml, { format: :html5 }
set :markdown, auto_ids: false
# Disable Haml warnings
Haml::TempleEngine.disable_option_validator!
page "/*.xml", layout: false
page "/*.json", layout: false
page "/*.txt", layout: false
page "/404.html", directory_index: false
set :css_dir, "assets/stylesheets"
set :images_dir, "assets/images"
set :js_dir, "assets/javascripts"
activate :blog do |blog|
blog.prefix = "blog"
blog.permalink = "{year}/{month}/{title}.html"
blog.sources = "articles/{year}-{month}-{title}.html"
blog.summary_separator = /(READMORE)/
blog.layout = "article_layout"
blog.new_article_template = File.expand_path("article-template.erb", File.dirname(__FILE__))
end
configure :build do
activate :external_pipeline,
name: :gulp,
command: "yarn production",
source: ".tmp",
latency: 1
activate :gzip
ignore "assets/javascripts/all.js"
ignore "assets/stylesheets/site"
activate :minify_html do |html|
html.remove_quotes = false
html.remove_intertag_spaces = true
end
end