jekyll 4.2.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +474 -350
- data/LICENSE +21 -21
- data/README.markdown +83 -86
- data/exe/jekyll +57 -57
- data/lib/blank_template/_config.yml +3 -3
- data/lib/blank_template/_layouts/default.html +12 -12
- data/lib/blank_template/_sass/{main.scss → base.scss} +9 -9
- data/lib/blank_template/assets/css/main.scss +4 -4
- data/lib/blank_template/index.md +8 -8
- data/lib/jekyll/cache.rb +186 -190
- data/lib/jekyll/cleaner.rb +111 -111
- data/lib/jekyll/collection.rb +310 -309
- data/lib/jekyll/command.rb +105 -105
- data/lib/jekyll/commands/build.rb +82 -93
- data/lib/jekyll/commands/clean.rb +44 -45
- data/lib/jekyll/commands/doctor.rb +177 -177
- data/lib/jekyll/commands/help.rb +34 -34
- data/lib/jekyll/commands/new.rb +168 -169
- data/lib/jekyll/commands/new_theme.rb +39 -40
- data/lib/jekyll/commands/serve/live_reload_reactor.rb +119 -122
- data/lib/jekyll/commands/serve/livereload_assets/livereload.js +1183 -1183
- data/lib/jekyll/commands/serve/mime_types_charset.json +71 -0
- data/lib/jekyll/commands/serve/servlet.rb +206 -202
- data/lib/jekyll/commands/serve/websockets.rb +81 -81
- data/lib/jekyll/commands/serve.rb +367 -362
- data/lib/jekyll/configuration.rb +313 -313
- data/lib/jekyll/converter.rb +54 -54
- data/lib/jekyll/converters/identity.rb +41 -41
- data/lib/jekyll/converters/markdown/kramdown_parser.rb +197 -199
- data/lib/jekyll/converters/markdown.rb +113 -113
- data/lib/jekyll/converters/smartypants.rb +70 -70
- data/lib/jekyll/convertible.rb +257 -257
- data/lib/jekyll/deprecator.rb +50 -50
- data/lib/jekyll/document.rb +543 -544
- data/lib/jekyll/drops/collection_drop.rb +20 -20
- data/lib/jekyll/drops/document_drop.rb +74 -70
- data/lib/jekyll/drops/drop.rb +293 -293
- data/lib/jekyll/drops/excerpt_drop.rb +23 -19
- data/lib/jekyll/drops/jekyll_drop.rb +32 -32
- data/lib/jekyll/drops/site_drop.rb +66 -66
- data/lib/jekyll/drops/static_file_drop.rb +14 -14
- data/lib/jekyll/drops/theme_drop.rb +36 -0
- data/lib/jekyll/drops/unified_payload_drop.rb +30 -26
- data/lib/jekyll/drops/url_drop.rb +140 -140
- data/lib/jekyll/entry_filter.rb +117 -121
- data/lib/jekyll/errors.rb +20 -20
- data/lib/jekyll/excerpt.rb +200 -201
- data/lib/jekyll/external.rb +75 -79
- data/lib/jekyll/filters/date_filters.rb +110 -110
- data/lib/jekyll/filters/grouping_filters.rb +64 -64
- data/lib/jekyll/filters/url_filters.rb +98 -98
- data/lib/jekyll/filters.rb +532 -535
- data/lib/jekyll/frontmatter_defaults.rb +238 -240
- data/lib/jekyll/generator.rb +5 -5
- data/lib/jekyll/hooks.rb +107 -107
- data/lib/jekyll/inclusion.rb +32 -32
- data/lib/jekyll/layout.rb +55 -67
- data/lib/jekyll/liquid_extensions.rb +22 -22
- data/lib/jekyll/liquid_renderer/file.rb +77 -77
- data/lib/jekyll/liquid_renderer/table.rb +45 -55
- data/lib/jekyll/liquid_renderer.rb +80 -80
- data/lib/jekyll/log_adapter.rb +151 -151
- data/lib/jekyll/mime.types +939 -866
- data/lib/jekyll/page.rb +215 -217
- data/lib/jekyll/page_excerpt.rb +25 -25
- data/lib/jekyll/page_without_a_file.rb +14 -14
- data/lib/jekyll/path_manager.rb +74 -74
- data/lib/jekyll/plugin.rb +92 -92
- data/lib/jekyll/plugin_manager.rb +123 -115
- data/lib/jekyll/profiler.rb +51 -58
- data/lib/jekyll/publisher.rb +23 -23
- data/lib/jekyll/reader.rb +209 -192
- data/lib/jekyll/readers/collection_reader.rb +23 -23
- data/lib/jekyll/readers/data_reader.rb +113 -79
- data/lib/jekyll/readers/layout_reader.rb +62 -62
- data/lib/jekyll/readers/page_reader.rb +25 -25
- data/lib/jekyll/readers/post_reader.rb +85 -85
- data/lib/jekyll/readers/static_file_reader.rb +25 -25
- data/lib/jekyll/readers/theme_assets_reader.rb +52 -52
- data/lib/jekyll/regenerator.rb +195 -195
- data/lib/jekyll/related_posts.rb +52 -52
- data/lib/jekyll/renderer.rb +263 -265
- data/lib/jekyll/site.rb +576 -551
- data/lib/jekyll/static_file.rb +205 -208
- data/lib/jekyll/stevenson.rb +60 -60
- data/lib/jekyll/tags/highlight.rb +114 -110
- data/lib/jekyll/tags/include.rb +275 -275
- data/lib/jekyll/tags/link.rb +42 -42
- data/lib/jekyll/tags/post_url.rb +106 -106
- data/lib/jekyll/theme.rb +90 -86
- data/lib/jekyll/theme_builder.rb +121 -121
- data/lib/jekyll/url.rb +167 -167
- data/lib/jekyll/utils/ansi.rb +57 -57
- data/lib/jekyll/utils/exec.rb +26 -26
- data/lib/jekyll/utils/internet.rb +37 -37
- data/lib/jekyll/utils/platforms.rb +67 -67
- data/lib/jekyll/utils/thread_event.rb +31 -31
- data/lib/jekyll/utils/win_tz.rb +46 -75
- data/lib/jekyll/utils.rb +371 -367
- data/lib/jekyll/version.rb +5 -5
- data/lib/jekyll.rb +195 -195
- data/lib/site_template/.gitignore +5 -5
- data/lib/site_template/404.html +25 -25
- data/lib/site_template/_config.yml +55 -55
- data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +29 -29
- data/lib/site_template/about.markdown +18 -18
- data/lib/site_template/index.markdown +6 -6
- data/lib/theme_template/CODE_OF_CONDUCT.md.erb +74 -74
- data/lib/theme_template/Gemfile +4 -4
- data/lib/theme_template/LICENSE.txt.erb +21 -21
- data/lib/theme_template/README.md.erb +50 -52
- data/lib/theme_template/_layouts/default.html +1 -1
- data/lib/theme_template/_layouts/page.html +5 -5
- data/lib/theme_template/_layouts/post.html +5 -5
- data/lib/theme_template/example/_config.yml.erb +1 -1
- data/lib/theme_template/example/_post.md +12 -12
- data/lib/theme_template/example/index.html +14 -14
- data/lib/theme_template/example/style.scss +7 -7
- data/lib/theme_template/gitignore.erb +6 -6
- data/lib/theme_template/theme.gemspec.erb +16 -16
- data/rubocop/jekyll/assert_equal_literal_actual.rb +149 -149
- data/rubocop/jekyll/no_p_allowed.rb +23 -23
- data/rubocop/jekyll/no_puts_allowed.rb +23 -23
- data/rubocop/jekyll.rb +5 -5
- metadata +64 -18
data/lib/jekyll/commands/new.rb
CHANGED
@@ -1,169 +1,168 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "erb"
|
4
|
-
|
5
|
-
module Jekyll
|
6
|
-
module Commands
|
7
|
-
class New < Command
|
8
|
-
class << self
|
9
|
-
def init_with_program(prog)
|
10
|
-
prog.command(:new) do |c|
|
11
|
-
c.syntax "new PATH"
|
12
|
-
c.description "Creates a new Jekyll site scaffold in PATH"
|
13
|
-
|
14
|
-
c.option "force", "--force", "Force creation even if PATH already exists"
|
15
|
-
c.option "blank", "--blank", "Creates scaffolding but with empty files"
|
16
|
-
c.option "skip-bundle", "--skip-bundle", "Skip 'bundle install'"
|
17
|
-
|
18
|
-
c.action do |args, options|
|
19
|
-
Jekyll::Commands::New.process(args, options)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def process(args, options = {})
|
25
|
-
raise ArgumentError, "You must specify a path." if args.empty?
|
26
|
-
|
27
|
-
new_blog_path = File.expand_path(args.join(" "), Dir.pwd)
|
28
|
-
FileUtils.mkdir_p new_blog_path
|
29
|
-
if preserve_source_location?(new_blog_path, options)
|
30
|
-
Jekyll.logger.error "Conflict:", "#{new_blog_path} exists and is not empty."
|
31
|
-
Jekyll.logger.abort_with "", "Ensure #{new_blog_path} is empty or else " \
|
32
|
-
|
33
|
-
end
|
34
|
-
|
35
|
-
if options["blank"]
|
36
|
-
create_blank_site new_blog_path
|
37
|
-
else
|
38
|
-
create_site new_blog_path
|
39
|
-
end
|
40
|
-
|
41
|
-
after_install(new_blog_path, options)
|
42
|
-
end
|
43
|
-
|
44
|
-
def blank_template
|
45
|
-
File.expand_path("../../blank_template", __dir__)
|
46
|
-
end
|
47
|
-
|
48
|
-
def create_blank_site(path)
|
49
|
-
FileUtils.cp_r blank_template + "/.", path
|
50
|
-
FileUtils.chmod_R "u+w", path
|
51
|
-
|
52
|
-
Dir.chdir(path) do
|
53
|
-
FileUtils.mkdir(%w(_data _drafts _includes _posts))
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def scaffold_post_content
|
58
|
-
ERB.new(File.read(File.expand_path(scaffold_path, site_template))).result
|
59
|
-
end
|
60
|
-
|
61
|
-
# Internal: Gets the filename of the sample post to be created
|
62
|
-
#
|
63
|
-
# Returns the filename of the sample post, as a String
|
64
|
-
def initialized_post_name
|
65
|
-
"_posts/#{Time.now.strftime("%Y-%m-%d")}-welcome-to-jekyll.markdown"
|
66
|
-
end
|
67
|
-
|
68
|
-
private
|
69
|
-
|
70
|
-
def gemfile_contents
|
71
|
-
<<~RUBY
|
72
|
-
source "https://rubygems.org"
|
73
|
-
# Hello! This is where you manage which Jekyll version is used to run.
|
74
|
-
# When you want to use a different version, change it below, save the
|
75
|
-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
76
|
-
#
|
77
|
-
# bundle exec jekyll serve
|
78
|
-
#
|
79
|
-
# This will help ensure the proper Jekyll version is running.
|
80
|
-
# Happy Jekylling!
|
81
|
-
gem "jekyll", "~> #{Jekyll::VERSION}"
|
82
|
-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
83
|
-
gem "minima", "~> 2.5"
|
84
|
-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
85
|
-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
86
|
-
# gem "github-pages", group: :jekyll_plugins
|
87
|
-
# If you have any plugins, put them here!
|
88
|
-
group :jekyll_plugins do
|
89
|
-
gem "jekyll-feed", "~> 0.12"
|
90
|
-
end
|
91
|
-
|
92
|
-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
93
|
-
# and associated library.
|
94
|
-
platforms :mingw, :x64_mingw, :mswin, :jruby do
|
95
|
-
gem "tzinfo", "
|
96
|
-
gem "tzinfo-data"
|
97
|
-
end
|
98
|
-
|
99
|
-
# Performance-booster for watching directories on Windows
|
100
|
-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
FileUtils.
|
123
|
-
FileUtils.
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
#
|
136
|
-
#
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
Jekyll.logger.info "
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "erb"
|
4
|
+
|
5
|
+
module Jekyll
|
6
|
+
module Commands
|
7
|
+
class New < Command
|
8
|
+
class << self
|
9
|
+
def init_with_program(prog)
|
10
|
+
prog.command(:new) do |c|
|
11
|
+
c.syntax "new PATH"
|
12
|
+
c.description "Creates a new Jekyll site scaffold in PATH"
|
13
|
+
|
14
|
+
c.option "force", "--force", "Force creation even if PATH already exists"
|
15
|
+
c.option "blank", "--blank", "Creates scaffolding but with empty files"
|
16
|
+
c.option "skip-bundle", "--skip-bundle", "Skip 'bundle install'"
|
17
|
+
|
18
|
+
c.action do |args, options|
|
19
|
+
Jekyll::Commands::New.process(args, options)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def process(args, options = {})
|
25
|
+
raise ArgumentError, "You must specify a path." if args.empty?
|
26
|
+
|
27
|
+
new_blog_path = File.expand_path(args.join(" "), Dir.pwd)
|
28
|
+
FileUtils.mkdir_p new_blog_path
|
29
|
+
if preserve_source_location?(new_blog_path, options)
|
30
|
+
Jekyll.logger.error "Conflict:", "#{new_blog_path} exists and is not empty."
|
31
|
+
Jekyll.logger.abort_with "", "Ensure #{new_blog_path} is empty or else try again " \
|
32
|
+
"with `--force` to proceed and overwrite any files."
|
33
|
+
end
|
34
|
+
|
35
|
+
if options["blank"]
|
36
|
+
create_blank_site new_blog_path
|
37
|
+
else
|
38
|
+
create_site new_blog_path
|
39
|
+
end
|
40
|
+
|
41
|
+
after_install(new_blog_path, options)
|
42
|
+
end
|
43
|
+
|
44
|
+
def blank_template
|
45
|
+
File.expand_path("../../blank_template", __dir__)
|
46
|
+
end
|
47
|
+
|
48
|
+
def create_blank_site(path)
|
49
|
+
FileUtils.cp_r blank_template + "/.", path
|
50
|
+
FileUtils.chmod_R "u+w", path
|
51
|
+
|
52
|
+
Dir.chdir(path) do
|
53
|
+
FileUtils.mkdir(%w(_data _drafts _includes _posts))
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def scaffold_post_content
|
58
|
+
ERB.new(File.read(File.expand_path(scaffold_path, site_template))).result
|
59
|
+
end
|
60
|
+
|
61
|
+
# Internal: Gets the filename of the sample post to be created
|
62
|
+
#
|
63
|
+
# Returns the filename of the sample post, as a String
|
64
|
+
def initialized_post_name
|
65
|
+
"_posts/#{Time.now.strftime("%Y-%m-%d")}-welcome-to-jekyll.markdown"
|
66
|
+
end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
def gemfile_contents
|
71
|
+
<<~RUBY
|
72
|
+
source "https://rubygems.org"
|
73
|
+
# Hello! This is where you manage which Jekyll version is used to run.
|
74
|
+
# When you want to use a different version, change it below, save the
|
75
|
+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
76
|
+
#
|
77
|
+
# bundle exec jekyll serve
|
78
|
+
#
|
79
|
+
# This will help ensure the proper Jekyll version is running.
|
80
|
+
# Happy Jekylling!
|
81
|
+
gem "jekyll", "~> #{Jekyll::VERSION}"
|
82
|
+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
83
|
+
gem "minima", "~> 2.5"
|
84
|
+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
85
|
+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
86
|
+
# gem "github-pages", group: :jekyll_plugins
|
87
|
+
# If you have any plugins, put them here!
|
88
|
+
group :jekyll_plugins do
|
89
|
+
gem "jekyll-feed", "~> 0.12"
|
90
|
+
end
|
91
|
+
|
92
|
+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
93
|
+
# and associated library.
|
94
|
+
platforms :mingw, :x64_mingw, :mswin, :jruby do
|
95
|
+
gem "tzinfo", ">= 1", "< 3"
|
96
|
+
gem "tzinfo-data"
|
97
|
+
end
|
98
|
+
|
99
|
+
# Performance-booster for watching directories on Windows
|
100
|
+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
|
101
|
+
|
102
|
+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
|
103
|
+
# do not have a Java counterpart.
|
104
|
+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
|
105
|
+
RUBY
|
106
|
+
end
|
107
|
+
|
108
|
+
def create_site(new_blog_path)
|
109
|
+
create_sample_files new_blog_path
|
110
|
+
|
111
|
+
File.write(File.expand_path(initialized_post_name, new_blog_path), scaffold_post_content)
|
112
|
+
|
113
|
+
File.write(File.expand_path("Gemfile", new_blog_path), gemfile_contents)
|
114
|
+
end
|
115
|
+
|
116
|
+
def preserve_source_location?(path, options)
|
117
|
+
!options["force"] && !Dir["#{path}/**/*"].empty?
|
118
|
+
end
|
119
|
+
|
120
|
+
def create_sample_files(path)
|
121
|
+
FileUtils.cp_r site_template + "/.", path
|
122
|
+
FileUtils.chmod_R "u+w", path
|
123
|
+
FileUtils.rm File.expand_path(scaffold_path, path)
|
124
|
+
end
|
125
|
+
|
126
|
+
def site_template
|
127
|
+
File.expand_path("../../site_template", __dir__)
|
128
|
+
end
|
129
|
+
|
130
|
+
def scaffold_path
|
131
|
+
"_posts/0000-00-00-welcome-to-jekyll.markdown.erb"
|
132
|
+
end
|
133
|
+
|
134
|
+
# After a new blog has been created, print a success notification and
|
135
|
+
# then automatically execute bundle install from within the new blog dir
|
136
|
+
# unless the user opts to generate a blank blog or skip 'bundle install'.
|
137
|
+
|
138
|
+
def after_install(path, options = {})
|
139
|
+
unless options["blank"] || options["skip-bundle"]
|
140
|
+
begin
|
141
|
+
require "bundler"
|
142
|
+
bundle_install path
|
143
|
+
rescue LoadError
|
144
|
+
Jekyll.logger.info "Could not load Bundler. Bundle install skipped."
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
Jekyll.logger.info "New jekyll site installed in #{path.cyan}."
|
149
|
+
Jekyll.logger.info "Bundle install skipped." if options["skip-bundle"]
|
150
|
+
end
|
151
|
+
|
152
|
+
def bundle_install(path)
|
153
|
+
Jekyll.logger.info "Running bundle install in #{path.cyan}..."
|
154
|
+
Dir.chdir(path) do
|
155
|
+
exe = Gem.bin_path("bundler", "bundle")
|
156
|
+
process, output = Jekyll::Utils::Exec.run("ruby", exe, "install")
|
157
|
+
|
158
|
+
output.to_s.each_line do |line|
|
159
|
+
Jekyll.logger.info("Bundler:".green, line.strip) unless line.to_s.empty?
|
160
|
+
end
|
161
|
+
|
162
|
+
raise SystemExit unless process.success?
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
@@ -1,40 +1,39 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "erb"
|
4
|
-
|
5
|
-
module Jekyll
|
6
|
-
module Commands
|
7
|
-
class NewTheme < Jekyll::Command
|
8
|
-
class << self
|
9
|
-
def init_with_program(prog)
|
10
|
-
prog.command(:"new-theme") do |c|
|
11
|
-
c.syntax "new-theme NAME"
|
12
|
-
c.description "Creates a new Jekyll theme scaffold"
|
13
|
-
c.option "code_of_conduct",
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
theme
|
30
|
-
|
31
|
-
|
32
|
-
theme.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "erb"
|
4
|
+
|
5
|
+
module Jekyll
|
6
|
+
module Commands
|
7
|
+
class NewTheme < Jekyll::Command
|
8
|
+
class << self
|
9
|
+
def init_with_program(prog)
|
10
|
+
prog.command(:"new-theme") do |c|
|
11
|
+
c.syntax "new-theme NAME"
|
12
|
+
c.description "Creates a new Jekyll theme scaffold"
|
13
|
+
c.option "code_of_conduct", "-c", "--code-of-conduct",
|
14
|
+
"Include a Code of Conduct. (defaults to false)"
|
15
|
+
|
16
|
+
c.action do |args, opts|
|
17
|
+
Jekyll::Commands::NewTheme.process(args, opts)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def process(args, opts)
|
23
|
+
if !args || args.empty?
|
24
|
+
raise Jekyll::Errors::InvalidThemeName, "You must specify a theme name."
|
25
|
+
end
|
26
|
+
|
27
|
+
new_theme_name = args.join("_")
|
28
|
+
theme = Jekyll::ThemeBuilder.new(new_theme_name, opts)
|
29
|
+
Jekyll.logger.abort_with "Conflict:", "#{theme.path} already exists." if theme.path.exist?
|
30
|
+
|
31
|
+
theme.create!
|
32
|
+
Jekyll.logger.info "Your new Jekyll theme, #{theme.name.cyan}, " \
|
33
|
+
"is ready for you in #{theme.path.to_s.cyan}!"
|
34
|
+
Jekyll.logger.info "For help getting started, read #{theme.path}/README.md."
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|