jekyll 4.2.1 → 4.3.0
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 +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/data_entry.rb +83 -0
- data/lib/jekyll/data_hash.rb +61 -0
- 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 +71 -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 +71 -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 +55 -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 +55 -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 +116 -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 +582 -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 +378 -367
- data/lib/jekyll/version.rb +5 -5
- data/lib/jekyll.rb +197 -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 +62 -14
data/lib/jekyll/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Jekyll
|
4
|
-
VERSION = "4.
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Jekyll
|
4
|
+
VERSION = "4.3.0"
|
5
|
+
end
|
data/lib/jekyll.rb
CHANGED
@@ -1,195 +1,197 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift __dir__ # For use/testing when no gem is installed
|
4
|
-
|
5
|
-
# Require all of the Ruby files in the given directory.
|
6
|
-
#
|
7
|
-
# path - The String relative path from here to the directory.
|
8
|
-
#
|
9
|
-
# Returns nothing.
|
10
|
-
def require_all(path)
|
11
|
-
glob = File.join(__dir__, path, "*.rb")
|
12
|
-
Dir[glob].sort.each do |f|
|
13
|
-
require f
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
# rubygems
|
18
|
-
require "rubygems"
|
19
|
-
|
20
|
-
# stdlib
|
21
|
-
require "forwardable"
|
22
|
-
require "fileutils"
|
23
|
-
require "time"
|
24
|
-
require "English"
|
25
|
-
require "pathname"
|
26
|
-
require "logger"
|
27
|
-
require "set"
|
28
|
-
require "csv"
|
29
|
-
require "json"
|
30
|
-
|
31
|
-
# 3rd party
|
32
|
-
require "pathutil"
|
33
|
-
require "addressable/uri"
|
34
|
-
require "safe_yaml/load"
|
35
|
-
require "liquid"
|
36
|
-
require "kramdown"
|
37
|
-
require "colorator"
|
38
|
-
require "i18n"
|
39
|
-
|
40
|
-
SafeYAML::OPTIONS[:suppress_warnings] = true
|
41
|
-
|
42
|
-
module Jekyll
|
43
|
-
# internal requires
|
44
|
-
autoload :Cleaner, "jekyll/cleaner"
|
45
|
-
autoload :Collection, "jekyll/collection"
|
46
|
-
autoload :Configuration, "jekyll/configuration"
|
47
|
-
autoload :Convertible, "jekyll/convertible"
|
48
|
-
autoload :
|
49
|
-
autoload :
|
50
|
-
autoload :
|
51
|
-
autoload :
|
52
|
-
autoload :
|
53
|
-
autoload :
|
54
|
-
autoload :
|
55
|
-
autoload :
|
56
|
-
autoload :
|
57
|
-
autoload :
|
58
|
-
autoload :
|
59
|
-
autoload :
|
60
|
-
autoload :
|
61
|
-
autoload :
|
62
|
-
autoload :
|
63
|
-
autoload :
|
64
|
-
autoload :
|
65
|
-
autoload :
|
66
|
-
autoload :
|
67
|
-
autoload :
|
68
|
-
autoload :
|
69
|
-
autoload :
|
70
|
-
autoload :
|
71
|
-
autoload :
|
72
|
-
autoload :
|
73
|
-
autoload :
|
74
|
-
autoload :
|
75
|
-
autoload :
|
76
|
-
autoload :
|
77
|
-
autoload :
|
78
|
-
autoload :
|
79
|
-
autoload :
|
80
|
-
autoload :
|
81
|
-
autoload :
|
82
|
-
autoload :
|
83
|
-
autoload :
|
84
|
-
autoload :
|
85
|
-
autoload :
|
86
|
-
autoload :
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
require "jekyll/
|
92
|
-
require "jekyll/
|
93
|
-
require "jekyll/
|
94
|
-
require "jekyll/
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
#
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
timezone
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
#
|
143
|
-
|
144
|
-
#
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
#
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
require_all "jekyll/
|
191
|
-
require_all "jekyll/
|
192
|
-
require_all "jekyll/
|
193
|
-
require_all "jekyll/
|
194
|
-
|
195
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift __dir__ # For use/testing when no gem is installed
|
4
|
+
|
5
|
+
# Require all of the Ruby files in the given directory.
|
6
|
+
#
|
7
|
+
# path - The String relative path from here to the directory.
|
8
|
+
#
|
9
|
+
# Returns nothing.
|
10
|
+
def require_all(path)
|
11
|
+
glob = File.join(__dir__, path, "*.rb")
|
12
|
+
Dir[glob].sort.each do |f|
|
13
|
+
require f
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# rubygems
|
18
|
+
require "rubygems"
|
19
|
+
|
20
|
+
# stdlib
|
21
|
+
require "forwardable"
|
22
|
+
require "fileutils"
|
23
|
+
require "time"
|
24
|
+
require "English"
|
25
|
+
require "pathname"
|
26
|
+
require "logger"
|
27
|
+
require "set"
|
28
|
+
require "csv"
|
29
|
+
require "json"
|
30
|
+
|
31
|
+
# 3rd party
|
32
|
+
require "pathutil"
|
33
|
+
require "addressable/uri"
|
34
|
+
require "safe_yaml/load"
|
35
|
+
require "liquid"
|
36
|
+
require "kramdown"
|
37
|
+
require "colorator"
|
38
|
+
require "i18n"
|
39
|
+
|
40
|
+
SafeYAML::OPTIONS[:suppress_warnings] = true
|
41
|
+
|
42
|
+
module Jekyll
|
43
|
+
# internal requires
|
44
|
+
autoload :Cleaner, "jekyll/cleaner"
|
45
|
+
autoload :Collection, "jekyll/collection"
|
46
|
+
autoload :Configuration, "jekyll/configuration"
|
47
|
+
autoload :Convertible, "jekyll/convertible"
|
48
|
+
autoload :DataEntry, "jekyll/data_entry"
|
49
|
+
autoload :DataHash, "jekyll/data_hash"
|
50
|
+
autoload :Deprecator, "jekyll/deprecator"
|
51
|
+
autoload :Document, "jekyll/document"
|
52
|
+
autoload :EntryFilter, "jekyll/entry_filter"
|
53
|
+
autoload :Errors, "jekyll/errors"
|
54
|
+
autoload :Excerpt, "jekyll/excerpt"
|
55
|
+
autoload :PageExcerpt, "jekyll/page_excerpt"
|
56
|
+
autoload :External, "jekyll/external"
|
57
|
+
autoload :FrontmatterDefaults, "jekyll/frontmatter_defaults"
|
58
|
+
autoload :Hooks, "jekyll/hooks"
|
59
|
+
autoload :Layout, "jekyll/layout"
|
60
|
+
autoload :Inclusion, "jekyll/inclusion"
|
61
|
+
autoload :Cache, "jekyll/cache"
|
62
|
+
autoload :CollectionReader, "jekyll/readers/collection_reader"
|
63
|
+
autoload :DataReader, "jekyll/readers/data_reader"
|
64
|
+
autoload :LayoutReader, "jekyll/readers/layout_reader"
|
65
|
+
autoload :PostReader, "jekyll/readers/post_reader"
|
66
|
+
autoload :PageReader, "jekyll/readers/page_reader"
|
67
|
+
autoload :StaticFileReader, "jekyll/readers/static_file_reader"
|
68
|
+
autoload :ThemeAssetsReader, "jekyll/readers/theme_assets_reader"
|
69
|
+
autoload :LogAdapter, "jekyll/log_adapter"
|
70
|
+
autoload :Page, "jekyll/page"
|
71
|
+
autoload :PageWithoutAFile, "jekyll/page_without_a_file"
|
72
|
+
autoload :PathManager, "jekyll/path_manager"
|
73
|
+
autoload :PluginManager, "jekyll/plugin_manager"
|
74
|
+
autoload :Publisher, "jekyll/publisher"
|
75
|
+
autoload :Profiler, "jekyll/profiler"
|
76
|
+
autoload :Reader, "jekyll/reader"
|
77
|
+
autoload :Regenerator, "jekyll/regenerator"
|
78
|
+
autoload :RelatedPosts, "jekyll/related_posts"
|
79
|
+
autoload :Renderer, "jekyll/renderer"
|
80
|
+
autoload :LiquidRenderer, "jekyll/liquid_renderer"
|
81
|
+
autoload :Site, "jekyll/site"
|
82
|
+
autoload :StaticFile, "jekyll/static_file"
|
83
|
+
autoload :Stevenson, "jekyll/stevenson"
|
84
|
+
autoload :Theme, "jekyll/theme"
|
85
|
+
autoload :ThemeBuilder, "jekyll/theme_builder"
|
86
|
+
autoload :URL, "jekyll/url"
|
87
|
+
autoload :Utils, "jekyll/utils"
|
88
|
+
autoload :VERSION, "jekyll/version"
|
89
|
+
|
90
|
+
# extensions
|
91
|
+
require "jekyll/plugin"
|
92
|
+
require "jekyll/converter"
|
93
|
+
require "jekyll/generator"
|
94
|
+
require "jekyll/command"
|
95
|
+
require "jekyll/liquid_extensions"
|
96
|
+
require "jekyll/filters"
|
97
|
+
|
98
|
+
class << self
|
99
|
+
# Public: Tells you which Jekyll environment you are building in so you can skip tasks
|
100
|
+
# if you need to. This is useful when doing expensive compression tasks on css and
|
101
|
+
# images and allows you to skip that when working in development.
|
102
|
+
|
103
|
+
def env
|
104
|
+
ENV["JEKYLL_ENV"] || "development"
|
105
|
+
end
|
106
|
+
|
107
|
+
# Public: Generate a Jekyll configuration Hash by merging the default
|
108
|
+
# options with anything in _config.yml, and adding the given options on top.
|
109
|
+
#
|
110
|
+
# override - A Hash of config directives that override any options in both
|
111
|
+
# the defaults and the config file.
|
112
|
+
# See Jekyll::Configuration::DEFAULTS for a
|
113
|
+
# list of option names and their defaults.
|
114
|
+
#
|
115
|
+
# Returns the final configuration Hash.
|
116
|
+
def configuration(override = {})
|
117
|
+
config = Configuration.new
|
118
|
+
override = Configuration[override].stringify_keys
|
119
|
+
unless override.delete("skip_config_files")
|
120
|
+
config = config.read_config_files(config.config_files(override))
|
121
|
+
end
|
122
|
+
|
123
|
+
# Merge DEFAULTS < _config.yml < override
|
124
|
+
Configuration.from(Utils.deep_merge_hashes(config, override)).tap do |obj|
|
125
|
+
set_timezone(obj["timezone"]) if obj["timezone"]
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Public: Set the TZ environment variable to use the timezone specified
|
130
|
+
#
|
131
|
+
# timezone - the IANA Time Zone
|
132
|
+
#
|
133
|
+
# Returns nothing
|
134
|
+
# rubocop:disable Naming/AccessorMethodName
|
135
|
+
def set_timezone(timezone)
|
136
|
+
ENV["TZ"] = if Utils::Platforms.really_windows?
|
137
|
+
Utils::WinTZ.calculate(timezone)
|
138
|
+
else
|
139
|
+
timezone
|
140
|
+
end
|
141
|
+
end
|
142
|
+
# rubocop:enable Naming/AccessorMethodName
|
143
|
+
|
144
|
+
# Public: Fetch the logger instance for this Jekyll process.
|
145
|
+
#
|
146
|
+
# Returns the LogAdapter instance.
|
147
|
+
def logger
|
148
|
+
@logger ||= LogAdapter.new(Stevenson.new, (ENV["JEKYLL_LOG_LEVEL"] || :info).to_sym)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Public: Set the log writer.
|
152
|
+
# New log writer must respond to the same methods
|
153
|
+
# as Ruby's internal Logger.
|
154
|
+
#
|
155
|
+
# writer - the new Logger-compatible log transport
|
156
|
+
#
|
157
|
+
# Returns the new logger.
|
158
|
+
def logger=(writer)
|
159
|
+
@logger = LogAdapter.new(writer, (ENV["JEKYLL_LOG_LEVEL"] || :info).to_sym)
|
160
|
+
end
|
161
|
+
|
162
|
+
# Public: An array of sites
|
163
|
+
#
|
164
|
+
# Returns the Jekyll sites created.
|
165
|
+
def sites
|
166
|
+
@sites ||= []
|
167
|
+
end
|
168
|
+
|
169
|
+
# Public: Ensures the questionable path is prefixed with the base directory
|
170
|
+
# and prepends the questionable path with the base directory if false.
|
171
|
+
#
|
172
|
+
# base_directory - the directory with which to prefix the questionable path
|
173
|
+
# questionable_path - the path we're unsure about, and want prefixed
|
174
|
+
#
|
175
|
+
# Returns the sanitized path.
|
176
|
+
def sanitized_path(base_directory, questionable_path)
|
177
|
+
return base_directory if base_directory.eql?(questionable_path)
|
178
|
+
return base_directory if questionable_path.nil?
|
179
|
+
|
180
|
+
+Jekyll::PathManager.sanitized_path(base_directory, questionable_path)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Conditional optimizations
|
184
|
+
Jekyll::External.require_if_present("liquid/c")
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
require "jekyll/drops/drop"
|
189
|
+
require "jekyll/drops/document_drop"
|
190
|
+
require_all "jekyll/commands"
|
191
|
+
require_all "jekyll/converters"
|
192
|
+
require_all "jekyll/converters/markdown"
|
193
|
+
require_all "jekyll/drops"
|
194
|
+
require_all "jekyll/generators"
|
195
|
+
require_all "jekyll/tags"
|
196
|
+
|
197
|
+
require "jekyll-sass-converter"
|
@@ -1,5 +1,5 @@
|
|
1
|
-
_site
|
2
|
-
.sass-cache
|
3
|
-
.jekyll-cache
|
4
|
-
.jekyll-metadata
|
5
|
-
vendor
|
1
|
+
_site
|
2
|
+
.sass-cache
|
3
|
+
.jekyll-cache
|
4
|
+
.jekyll-metadata
|
5
|
+
vendor
|
data/lib/site_template/404.html
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
---
|
2
|
-
permalink: /404.html
|
3
|
-
layout: default
|
4
|
-
---
|
5
|
-
|
6
|
-
<style type="text/css" media="screen">
|
7
|
-
.container {
|
8
|
-
margin: 10px auto;
|
9
|
-
max-width: 600px;
|
10
|
-
text-align: center;
|
11
|
-
}
|
12
|
-
h1 {
|
13
|
-
margin: 30px 0;
|
14
|
-
font-size: 4em;
|
15
|
-
line-height: 1;
|
16
|
-
letter-spacing: -1px;
|
17
|
-
}
|
18
|
-
</style>
|
19
|
-
|
20
|
-
<div class="container">
|
21
|
-
<h1>404</h1>
|
22
|
-
|
23
|
-
<p><strong>Page not found :(</strong></p>
|
24
|
-
<p>The requested page could not be found.</p>
|
25
|
-
</div>
|
1
|
+
---
|
2
|
+
permalink: /404.html
|
3
|
+
layout: default
|
4
|
+
---
|
5
|
+
|
6
|
+
<style type="text/css" media="screen">
|
7
|
+
.container {
|
8
|
+
margin: 10px auto;
|
9
|
+
max-width: 600px;
|
10
|
+
text-align: center;
|
11
|
+
}
|
12
|
+
h1 {
|
13
|
+
margin: 30px 0;
|
14
|
+
font-size: 4em;
|
15
|
+
line-height: 1;
|
16
|
+
letter-spacing: -1px;
|
17
|
+
}
|
18
|
+
</style>
|
19
|
+
|
20
|
+
<div class="container">
|
21
|
+
<h1>404</h1>
|
22
|
+
|
23
|
+
<p><strong>Page not found :(</strong></p>
|
24
|
+
<p>The requested page could not be found.</p>
|
25
|
+
</div>
|
@@ -1,55 +1,55 @@
|
|
1
|
-
# Welcome to Jekyll!
|
2
|
-
#
|
3
|
-
# This config file is meant for settings that affect your whole blog, values
|
4
|
-
# which you are expected to set up once and rarely edit after that. If you find
|
5
|
-
# yourself editing this file very often, consider using Jekyll's data files
|
6
|
-
# feature for the data you need to update frequently.
|
7
|
-
#
|
8
|
-
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
9
|
-
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
10
|
-
#
|
11
|
-
# If you need help with YAML syntax, here are some quick references for you:
|
12
|
-
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
|
13
|
-
# https://learnxinyminutes.com/docs/yaml/
|
14
|
-
#
|
15
|
-
# Site settings
|
16
|
-
# These are used to personalize your new site. If you look in the HTML files,
|
17
|
-
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
18
|
-
# You can create any custom variable you would like, and they will be accessible
|
19
|
-
# in the templates via {{ site.myvariable }}.
|
20
|
-
|
21
|
-
title: Your awesome title
|
22
|
-
email: your-email@example.com
|
23
|
-
description: >- # this means to ignore newlines until "baseurl:"
|
24
|
-
Write an awesome description for your new site here. You can edit this
|
25
|
-
line in _config.yml. It will appear in your document head meta (for
|
26
|
-
Google search results) and in your feed.xml site description.
|
27
|
-
baseurl: "" # the subpath of your site, e.g. /blog
|
28
|
-
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
29
|
-
twitter_username: jekyllrb
|
30
|
-
github_username: jekyll
|
31
|
-
|
32
|
-
# Build settings
|
33
|
-
theme: minima
|
34
|
-
plugins:
|
35
|
-
- jekyll-feed
|
36
|
-
|
37
|
-
# Exclude from processing.
|
38
|
-
# The following items will not be processed, by default.
|
39
|
-
# Any item listed under the `exclude:` key here will be automatically added to
|
40
|
-
# the internal "default list".
|
41
|
-
#
|
42
|
-
# Excluded items can be processed by explicitly listing the directories or
|
43
|
-
# their entries' file path in the `include:` list.
|
44
|
-
#
|
45
|
-
# exclude:
|
46
|
-
# - .sass-cache/
|
47
|
-
# - .jekyll-cache/
|
48
|
-
# - gemfiles/
|
49
|
-
# - Gemfile
|
50
|
-
# - Gemfile.lock
|
51
|
-
# - node_modules/
|
52
|
-
# - vendor/bundle/
|
53
|
-
# - vendor/cache/
|
54
|
-
# - vendor/gems/
|
55
|
-
# - vendor/ruby/
|
1
|
+
# Welcome to Jekyll!
|
2
|
+
#
|
3
|
+
# This config file is meant for settings that affect your whole blog, values
|
4
|
+
# which you are expected to set up once and rarely edit after that. If you find
|
5
|
+
# yourself editing this file very often, consider using Jekyll's data files
|
6
|
+
# feature for the data you need to update frequently.
|
7
|
+
#
|
8
|
+
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
9
|
+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
10
|
+
#
|
11
|
+
# If you need help with YAML syntax, here are some quick references for you:
|
12
|
+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
|
13
|
+
# https://learnxinyminutes.com/docs/yaml/
|
14
|
+
#
|
15
|
+
# Site settings
|
16
|
+
# These are used to personalize your new site. If you look in the HTML files,
|
17
|
+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
18
|
+
# You can create any custom variable you would like, and they will be accessible
|
19
|
+
# in the templates via {{ site.myvariable }}.
|
20
|
+
|
21
|
+
title: Your awesome title
|
22
|
+
email: your-email@example.com
|
23
|
+
description: >- # this means to ignore newlines until "baseurl:"
|
24
|
+
Write an awesome description for your new site here. You can edit this
|
25
|
+
line in _config.yml. It will appear in your document head meta (for
|
26
|
+
Google search results) and in your feed.xml site description.
|
27
|
+
baseurl: "" # the subpath of your site, e.g. /blog
|
28
|
+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
29
|
+
twitter_username: jekyllrb
|
30
|
+
github_username: jekyll
|
31
|
+
|
32
|
+
# Build settings
|
33
|
+
theme: minima
|
34
|
+
plugins:
|
35
|
+
- jekyll-feed
|
36
|
+
|
37
|
+
# Exclude from processing.
|
38
|
+
# The following items will not be processed, by default.
|
39
|
+
# Any item listed under the `exclude:` key here will be automatically added to
|
40
|
+
# the internal "default list".
|
41
|
+
#
|
42
|
+
# Excluded items can be processed by explicitly listing the directories or
|
43
|
+
# their entries' file path in the `include:` list.
|
44
|
+
#
|
45
|
+
# exclude:
|
46
|
+
# - .sass-cache/
|
47
|
+
# - .jekyll-cache/
|
48
|
+
# - gemfiles/
|
49
|
+
# - Gemfile
|
50
|
+
# - Gemfile.lock
|
51
|
+
# - node_modules/
|
52
|
+
# - vendor/bundle/
|
53
|
+
# - vendor/cache/
|
54
|
+
# - vendor/gems/
|
55
|
+
# - vendor/ruby/
|
@@ -1,29 +1,29 @@
|
|
1
|
-
---
|
2
|
-
layout: post
|
3
|
-
title: "Welcome to Jekyll!"
|
4
|
-
date: <%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>
|
5
|
-
categories: jekyll update
|
6
|
-
---
|
7
|
-
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
8
|
-
|
9
|
-
Jekyll requires blog post files to be named according to the following format:
|
10
|
-
|
11
|
-
`YEAR-MONTH-DAY-title.MARKUP`
|
12
|
-
|
13
|
-
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
|
14
|
-
|
15
|
-
Jekyll also offers powerful support for code snippets:
|
16
|
-
|
17
|
-
{% highlight ruby %}
|
18
|
-
def print_hi(name)
|
19
|
-
puts "Hi, #{name}"
|
20
|
-
end
|
21
|
-
print_hi('Tom')
|
22
|
-
#=> prints 'Hi, Tom' to STDOUT.
|
23
|
-
{% endhighlight %}
|
24
|
-
|
25
|
-
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
|
26
|
-
|
27
|
-
[jekyll-docs]: https://jekyllrb.com/docs/home
|
28
|
-
[jekyll-gh]: https://github.com/jekyll/jekyll
|
29
|
-
[jekyll-talk]: https://talk.jekyllrb.com/
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
title: "Welcome to Jekyll!"
|
4
|
+
date: <%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>
|
5
|
+
categories: jekyll update
|
6
|
+
---
|
7
|
+
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
8
|
+
|
9
|
+
Jekyll requires blog post files to be named according to the following format:
|
10
|
+
|
11
|
+
`YEAR-MONTH-DAY-title.MARKUP`
|
12
|
+
|
13
|
+
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
|
14
|
+
|
15
|
+
Jekyll also offers powerful support for code snippets:
|
16
|
+
|
17
|
+
{% highlight ruby %}
|
18
|
+
def print_hi(name)
|
19
|
+
puts "Hi, #{name}"
|
20
|
+
end
|
21
|
+
print_hi('Tom')
|
22
|
+
#=> prints 'Hi, Tom' to STDOUT.
|
23
|
+
{% endhighlight %}
|
24
|
+
|
25
|
+
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
|
26
|
+
|
27
|
+
[jekyll-docs]: https://jekyllrb.com/docs/home
|
28
|
+
[jekyll-gh]: https://github.com/jekyll/jekyll
|
29
|
+
[jekyll-talk]: https://talk.jekyllrb.com/
|