-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.rb
55 lines (47 loc) · 1.39 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
require 'ansi/code'
require 'slim'
Time.zone = 'Tokyo'
set :layout, :_auto_layout
set :layouts_dir, 'template'
set :images_dir, 'img'
set :css_dir, 'style'
set :js_dir, 'script'
# set engines, template->slim, markdown->kramdown
set :slim, :layout_engine => :slim, :format => :html
set :markdown_engine, :kramdown
set :markdown, :fenced_code_blocks => true, :smartypants => true, :autolink => true
activate :similar
activate :automatic_image_sizes
activate :syntax, :line_numbers => true
activate :blog do |blog|
blog.default_extension = '.md'
blog.sources = 'blog/articles/:title.html'
blog.permalink = ':year/:title.html'
blog.layout = 'template/article'
blog.tag_template = 'asset/tag'
blog.calendar_template = 'asset/calender'
end
activate :sitemap_ping do |config|
config.host = 'https://middleman-by-wkwkrnht.netlify.com' # (required) Host of your website
end
activate :robots,
:rules => [
{
:user_agent => 'Googlebot',
:allow => %w(/),
:disallow => %w(404.html)
},
{
:user_agent => 'Googlebot-Image',
:allow => %w(/),
:disallow => %w(404.html)
}
],
:sitemap => 'https://middleman-by-wkwkrnht.netlify.com/sitemap.xml'
configure :build do
activate :minify_html
activate :gzip
activate :minify_css
activate :minify_javascript
activate :cache_buster
end