-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
60 lines (48 loc) · 1.7 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
activate :autoprefixer do |prefix|
prefix.browsers = "last 2 versions"
end
page "/*.json", layout: false
page "/*.txt", layout: false
page "/*.xml", layout: false
Time.zone = "UTC"
activate :blog do |blog|
blog.permalink = "{title}"
blog.default_extension = ".md"
blog.tag_template = "tag.html"
blog.calendar_template = "calendar.html"
end
activate :directory_indexes
page "/humans.txt", layout: false, :directory_index => false
page "/robots.txt", layout: false, :directory_index => false
configure :development do
activate :livereload
set :site_root_uri, "https://localhost/"
set :render_analytics, false
end
set :css_dir, 'styles'
set :js_dir, 'scripts'
set :images_dir, 'images'
configure :build do
activate :minify_html, remove_input_attributes: false
activate :minify_css
activate :minify_javascript, compressor: Terser.new
activate :gzip
activate :asset_hash
set :site_root_uri, "https://blog.martincostello.com/"
set :render_analytics, true
end
activate :syntax
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true
set :cdn_domain, "cdn.martincostello.com"
set :site_domain, "blog.martincostello.com"
set :site_root_uri_canonical, "https://blog.martincostello.com/"
set :analytics_id, "G-XJFV74HRL6"
set :blog_author, "Martin Costello"
set :blog_title, "Martin Costello's Blog"
set :blog_subtitle, "The blog of a software developer and tester."
set :facebook_profile, "10100867762061905"
set :github_login, "martincostello"
set :site_verification_bing, "D6C2E7551C902F1A396D8564C6452930"
set :site_verification_google, "ji6SNsPQEbNQmF252sQgQFswh-b6cDnNOa3AHvgo4J0"
set :twitter_handle, "martin_costello"