Jonathan Hooper
f906a3cb59
Rescue from Psych::SyntaxError instead of SyntaxError after parsing YAML ( #5828 )
...
Merge pull request 5828
2017-12-07 19:55:10 +01:00
ashmaroli
9632733efa
enable 'Lint/RescueWithoutErrorClass' Cop ( #6482 )
...
Merge pull request 6482
2017-10-28 11:24:41 -04:00
ashmaroli
e5403396b7
Disable default layouts for Pages with a `layout: none` declaration ( #6182 )
...
Merge pull request 6182
2017-09-23 16:03:40 -04:00
ashmaroli
00bad8bfe5
Bump rubocop to use `v0.50.x` ( #6368 )
...
Merge pull request 6368
2017-09-22 09:06:32 -04:00
Parker Moore
7cf5f51ca2
Enforce Style/FrozenStringLiteralComment. ( #6265 )
...
Merge pull request 6265
2017-08-03 21:27:32 -04:00
Anatoliy Yastreb
d3b00cb84c
Bump Rubocop to 0.49.1 ( #6093 )
...
Merge pull request 6093
2017-06-15 08:29:35 -04:00
Jonathan Hooper
308ba550ef
Add option to fail a build with front matter syntax errors ( #5832 )
...
Merge pull request 5832
2017-05-09 20:17:36 -04:00
Anatoliy Yastreb
1c33bd5797
rubocop: reduce code complexity and remove duplicated code
2017-03-31 01:12:01 -04:00
Parker Moore
5bc67c1fb7
Convertible#validate_permalink!: ensure the return value of data["permalink"] is a string before asking if it is empty
2017-02-10 21:56:43 -05:00
Parker Moore
3840a38081
Convertible: set self.output in #render_all_layouts and #do_layout
2016-09-07 15:59:43 -07:00
Parker Moore
a78426f20d
Convertible#read_yaml: disable Metrics/AbcSize check
2016-08-30 14:39:49 -07:00
Parker Moore
9ddc12bad8
Convertible: ensure layouts the argument and payload the argument are set properly in the renderer
2016-08-30 14:39:20 -07:00
Parker Moore
73e79f0049
Proxy Convertible#converters to Renderer#run
2016-08-30 14:14:22 -07:00
Parker Moore
8496e2e8b6
Proxy Convertible#render_liquid to Renderer
2016-08-30 14:14:12 -07:00
Parker Moore
d0f57b61d4
Proxy Convertible#transform to Renderer
2016-08-30 14:14:03 -07:00
Parker Moore
741102bd40
Proxy Convertible#converters to Renderer
2016-08-30 14:13:26 -07:00
Parker Moore
b781b9967d
Proxy Convertible#render_all_layouts to Renderer.place_in_layouts
2016-08-30 14:04:57 -07:00
Stephen Checkoway
8d4ab9366e
Show liquid warnings.
2016-07-24 13:04:28 -05:00
Anatoliy Yastreb
2bbad7cb43
rubocop: fix code style
2016-06-25 15:11:50 +03:00
Parker Moore
db7cd6f612
Reset {{ layout }} between each render & merge layout data properly
2016-05-24 18:57:54 -05:00
Parker Moore
2b73696d03
Set @path and @base_dir on the Layout per whether it's in the theme
2016-04-21 16:10:19 -07:00
Parker Moore
42cc2445a5
Merge branch 'master' into themes
...
* master: (58 commits)
Update history to reflect merge of #4792 [ci skip]
Update history to reflect merge of #4793 [ci skip]
Update history to reflect merge of #4804 [ci skip]
Update history to reflect merge of #4754 [ci skip]
Update history to reflect merge of #4813 [ci skip]
Added missing single quote on rsync client side command
Add v3.0.4 and v3.1.3 to the history.
Fixed typo
Add jekyll-autoprefixer plugin
Explicitly require Filters rather than implicitly.
Update history to reflect merge of #4786 [ci skip]
Update history to reflect merge of #4789 [ci skip]
updates example domain in config template
Globalize Jekyll's Filters.
Update JRuby to 9.0.5.0; Drop the double digit test.
Update Rack-Jekyll Heroku deployment blog post url
convertible: use Document::YAML_FRONT_MATTER_REGEXP to parse transformable files
Update history to reflect merge of #4734 [ci skip]
Update history to reflect merge of #4478 [ci skip]
Fix rubocop warning.
...
2016-04-21 11:43:35 -07:00
Parker Moore
f210cafdf2
convertible: use Document::YAML_FRONT_MATTER_REGEXP to parse transformable files
2016-04-13 23:22:05 -04:00
Parker Moore
a1a4b3937a
Add Layout#relative_path so the layout can tell us what its path is for error messages
2016-03-25 16:29:37 -07:00
Parker Moore
aad54c9a87
Add Utils.merged_file_read_opts to unify reading & strip the BOM
2016-01-26 17:08:54 -08:00
Parker Moore
d343da61eb
Page: pipe through Renderer instead of using Convertible
2016-01-18 11:41:05 -08:00
Parker Moore
06fa14c11a
Restructure data validation so that permalink check raises an error.
2016-01-15 16:11:08 -08:00
Parker Moore
89db3c6384
Convertible: separate data validation out of #read
2016-01-15 15:52:54 -08:00
Parker Moore
948dcf2714
Convertible: consolidate empty check into Convertible#read
2016-01-15 15:51:32 -08:00
Pedro Euko
5681742223
Check if permalink key was given
2016-01-15 14:40:59 -02:00
Pedro Euko
f8a63157d7
Empty permalink now shows an error
2016-01-15 14:40:47 -02:00
Parker Moore
735194ccaf
Convertible/Page/Renderer: use payload hash accessor & setter syntax
2016-01-04 12:37:19 -08:00
Pat Hawks
6711234d5f
Rubocop: Style/BlockDelimiters
...
- Avoid using {...} for multi-line blocks
2016-01-04 12:05:54 -08:00
Pat Hawks
086e85ca9e
Rubocop: Style/PerlBackrefs
...
- Avoid the use of Perl-style backrefs
2016-01-04 12:01:23 -08:00
Pat Hawks
98a19cdf2b
Rubocop: Style/PercentLiteralDelimiters
...
- %w-literals should be delimited by ( and )
Rubocop: Style/WordArray
- Use %w or %W for array of words
2016-01-03 15:32:11 -08:00
Parker Moore
82c3ee365f
Initial work on using Liquid::Drops instead of Hashes.
...
The properties of Liquid::Drops are only evaluated when they're asked for
and therefore save computation time. This prevents a lot of GC time cleaning
up objects that are not needed, because they're not created unless requested.
Additionally, this saves time for actual computation of those values because
they can be computed only if needed.
It's funny how much it helps when you only do what is needed. Far less overhead.
2015-12-21 22:47:30 -05:00
Parker Moore
ac9fa413a5
Convertible should make layout data accessible via 'layout'
...
Not via 'page'. Erroneous!
Fixes #4117 .
2015-11-30 14:35:55 -08:00
Jordon Bedwell
0f4aed9ccf
Fix #4066 : Move Convertible#render_liquid to using render!
2015-10-29 16:06:17 -05:00
Parker Moore
b89f943bf2
collections: posts as collection
2015-10-26 00:29:14 -07:00
Parker Moore
8927898e1f
Merge pull request #3871 from stevecrozz/3870_hook_trigger_interface_change
...
Merge pull request 3871
2015-08-23 12:55:00 -07:00
Fabio Niephaus
2812341c37
Merge branch 'master' of https://github.com/jekyll/jekyll into _includes
...
Conflicts:
bin/jekyll
2015-08-09 16:22:33 +01:00
Fabio Niephaus
ac56e9dd16
Make _includes directory configurable; closes #2684
...
and rename `plugins`, `layouts` and `data_source` directories for consistency
2015-08-09 16:20:58 +01:00
Stephen Crosby
7c4f319442
#3870 trigger hooks by owner symbol
2015-07-27 16:23:07 -07:00
Florian Weingarten
1e9163fdf4
Liquid profiler
2015-06-07 16:38:05 +00:00
Stephen Crosby
6ca9633354
prototype of jekyll hooks, encapsulated
2015-05-01 14:35:15 -07:00
Parker Moore
c76c4e478b
Convertible#read_yaml should return self.data.
...
Broken in 4b108df3ab
.
2015-04-11 15:42:58 -04:00
Parker Moore
4b108df3ab
convertible: abort with an error if Page/Post#data isn't a hash.
...
when the default_proc was being assigned, it failed if it wasn't a Hash. We
expect data to be a Hash everywhere, so let's freak out if it isn't after
reading and applying the fallback.
Fixes #3643 .
2015-04-10 17:07:14 -04:00
Alfred Xing
fe5f0d124c
Move all regenerate? checking to Regenerator
2015-01-18 11:05:06 -08:00
Alfred Xing
43a28aed96
Fix indentation
2014-12-05 19:38:43 -08:00
Alfred Xing
5d9662f80f
Always regenerate asset files
2014-12-05 19:07:18 -08:00