Commit Graph

828 Commits

Author SHA1 Message Date
imathis
2b01b06ec8 Support passing Liquid variables to includes
Change the regex matching to allow Liquid variables and object fields
to be passed to the include. Use the render context to retrieve the
variable value. Also, relax syntax checks by allowing surrounding spaces
and dashes in parameter names.
2013-06-22 15:47:16 +02:00
maul.esel
f8f6784305 move parameter parsing to render time 2013-06-22 15:30:10 +02:00
maul.esel
00ed567f99 move regex to the top 2013-06-22 15:07:10 +02:00
maul.esel
bdd84f275e Ruby 1.8.7 only supports 1 param to Regexp.match() 2013-06-15 18:28:26 +02:00
maul.esel
99721ee8aa To satisfy Ruby 1.8.7, use look-ahead instead of look-behind 2013-06-15 18:19:52 +02:00
maul.esel
0fa03d2651 stupid Ruby 1.8.7 doesn't support named groups 2013-06-13 18:48:40 +02:00
maul.esel
639acea0a7 do parameter parsing with @imathis' incredible regex
This also introduces single-quote support.
2013-06-13 18:38:14 +02:00
maul.esel
f612330565 add support for parameters to {% include %} tags 2013-06-11 16:04:42 +02:00
Parker Moore
700d840a06 Release 1.0.3 2013-06-07 21:02:13 +02:00
Parker Moore
86e5a1f7a9 Merge pull request #1189 from mojombo/private-gist-support
Support new private gist syntax.
2013-06-07 11:55:09 -07:00
Parker Moore
1c18394afc Catch and print errors when MaRuKu freaks out, and exit with an error code other than 0. 2013-06-07 01:41:30 +02:00
Parker Moore
066912556e Support new private gist syntax. 2013-06-07 00:34:23 +02:00
Matt Rogers
cd3732e612 Merge pull request #1170 from mojombo/remove-ids-from-site-template
For template site, convert #post to .post. Fixes #1161.
2013-06-03 08:07:09 -07:00
Parker Moore
2d27deaec7 For template site, convert #post to .post. 2013-06-02 18:48:45 +02:00
Brian Kim
1083bfd533 Fix typo in Stevenson 2013-05-31 17:23:57 -04:00
Parker Moore
14a4e32bbe Use singleton instance variable instead of class variable 2013-05-29 12:04:50 +02:00
Parker Moore
1f59e9c757 Use Jekyll.logger instead of Jekyll::Stevenson to log things. 2013-05-29 11:58:35 +02:00
Mikael Konutgan
9adfd6ddeb Document uri_escape 2013-05-23 20:18:08 +02:00
Matt Rogers
1eab13c068 Merge pull request #1063 from Kelsin/fixing-paginate_path-for-windows
Fixing pagination on windows
2013-05-22 12:26:54 -07:00
Matt Rogers
7c012a9e0c Merge pull request #1115 from clang1234/master
Add --force flag to new command
2013-05-17 21:15:17 -07:00
Matt Rogers
2b84173eca Merge pull request #1121 from mojombo/non-zero-exit-on-liquid-exception
Non zero exit on Liquid exception
2013-05-17 20:41:04 -07:00
Matt Rogers
ddba4cde8b Merge pull request #1114 from mojombo/backwards-compatibilize-exclude-include
Backwards-compatibilize 'exclude' and 'include' config tags
2013-05-17 19:56:48 -07:00
Parker Moore
ff8cf7c868 provide access to the layout name so when shit goes down we get the name of the layout which couldn't be processed 2013-05-17 22:45:39 +02:00
Parker Moore
a95fa70d72 raise things when there's a yaml exception (non-zero exit code 2013-05-17 22:44:46 +02:00
Casey Lang
fafacc43ca Add ? to preserve_source_location 2013-05-16 16:15:21 -05:00
Casey Lang
00dd37d2e4 Extract check for force to improve readability 2013-05-16 16:13:13 -05:00
Sebastian Morr
151ffab6fe Removed space characters in empty lines 2013-05-16 20:27:27 +02:00
Casey Lang
2ce39bc20a Add '--force' to 'new' command. Implements #1104 2013-05-15 17:29:27 -05:00
Parker Moore
8e3ab9ea36 Backwards-compatibilize 'exclude' and 'include' config tags. Fixes #1109 2013-05-16 00:25:16 +02:00
Parker Moore
ef48cbefec Merge pull request #1057 from mojombo/refactor-related-posts
Move the building of related posts into their own class
2013-05-15 07:25:53 -07:00
Parker Moore
5258e3afa3 Logger ~> Stevenson and don't inherit from Ruby Logger. #1106. 2013-05-15 15:15:00 +02:00
Matt Rogers
98aff03595 Use Jekyll::Stevenson#formatted_topic for printing messages
Beats trying to line them up yourself. :-)
2013-05-14 22:04:34 -05:00
Matt Rogers
ff600bfcd9 Merge branch 'master' into refactor-related-posts 2013-05-14 21:54:12 -05:00
Parker Moore
35f4f09c3e Rename Jekyll::Logger ~> Jekyll::Stevenson to fix inheritance problem
Problem described here: ca888cad76
2013-05-14 21:07:23 +02:00
Parker Moore
8051df0f4c Release 1.0.2 2013-05-12 15:26:45 +02:00
Parker Moore
179a746091 Merge pull request #1066 from Rowno/data-language
Add a `data-lang` attribute to code blocks
2013-05-12 03:11:11 -07:00
Parker Moore
28b9e351c4 Merge pull request #1081 from mojombo/relative-permalinks
Backwards-compatibilize relative permalinks
2013-05-12 02:55:49 -07:00
Parker Moore
f9502dc9f5 Merge pull request #1078 from maul-esel/fix-num-category
Fix number category
2013-05-12 02:52:39 -07:00
Parker Moore
c59cfcfd2e Not automatically deprecated. 2013-05-12 01:19:04 +02:00
Parker Moore
d9f0dce67d make sure relative_permalinks is set to TRUE 2013-05-12 01:16:52 +02:00
Parker Moore
2e1316ec8b Ensure the page is in a subdir. That's the only time it's eff'd. 2013-05-12 01:08:33 +02:00
Parker Moore
6167747440 Say happy things when everything is cool 2013-05-12 01:07:58 +02:00
maul.esel
1b80fc8cc8 always be polite to the user :) 2013-05-11 20:03:55 +02:00
maul.esel
a8788f4a0a copy over deprecated config option to new one 2013-05-11 19:57:11 +02:00
maul.esel
c44d4248ac warn on use of deprecated "server_port" option 2013-05-11 19:54:06 +02:00
Parker Moore
0e82b4eb2f Use site config to determine whether permalinks should be relative. 2013-05-11 18:26:20 +02:00
Parker Moore
161244fd78 Add better language and link to Upgrading page in docs for relative permalinks deprecation msg 2013-05-11 18:06:33 +02:00
Parker Moore
1f23bc4dc0 Add support for relative permalinks 2013-05-11 18:03:03 +02:00
Parker Moore
19bc54bb07 Add doctor command 2013-05-11 18:02:53 +02:00
Parker Moore
6294c4a204 Better-formatted output with relation to 'Generating... done.' 2013-05-11 17:56:42 +02:00