-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRules
54 lines (43 loc) · 1.17 KB
/
Rules
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
# https://github.com/gettalong/kramdown/issues/532
require "kramdown"
Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL_BLOCK.push "center"
Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL["center"] = :block
preprocess do
@config[:env] = ENV["ENV"] if ENV["ENV"]
end
filter_with_kramdown = proc do |item|
item.filter :kramdown, parse_block_html: true
end
ignore "/**/_*"
ignore "/*.csv"
compile "/home.haml" do
filter :haml, remove_whitespace: true
layout "/default.*"
write "/index.html"
end
compile "/**/*.haml" do
filter :haml, remove_whitespace: true
layout "/default.*"
write item.identifier.without_ext + "/index.html"
end
compile "/{arutelud,tulemused}.md" do
filter_with_kramdown[self]
snapshot :text
end
compile "/**/*.md" do
filter_with_kramdown[self]
layout "/text.*"
layout "/default.*"
write item.identifier.without_ext + "/index.html"
end
compile "/**/*.scss" do
filter :sass, syntax: :scss, style: :compact, cache_location: "tmp/sass-cache"
write item.identifier.without_ext + ".css"
end
compile "/**/*" do
write item.identifier.to_s
end
compile "/.htaccess" do
write item.identifier.to_s
end
layout "/**/*", :haml, remove_whitespace: true