Parker Moore
4de2be8c5f
Add Jekyll::LiquidExtensions.lookup_variable
...
To use, just include `Jekyll::LiquidExtensions` as you please:
```ruby
class SayHi < Liquid::Tag
include Jekyll::LiquidExtensions
def initialize(tag_name, markup, tokens)
@markup = markup.strip
end
def render(context)
"hi #{lookup_variable(context, @markup)}"
end
end
```
Fixes #2071 .
2014-04-22 14:27:47 -04:00
Parker Moore
68d491c40d
Update history to reflect merge of #2205 [ci skip]
2014-04-21 23:01:47 -04:00
Parker Moore
9db5a1a6ce
Merge pull request #2205 from jekyll/maul-esel-frontmatter-defaults
2014-04-21 23:01:05 -04:00
Parker Moore
49c0f9cccc
Update history to reflect merge of #2250 [ci skip]
2014-04-20 16:02:50 -04:00
Parker Moore
8389e78ff3
Merge pull request #2250 from sheehamj13/patch-1
2014-04-20 16:02:16 -04:00
Matt Sheehan
6ba375401e
Update plugins.md
2014-04-20 15:01:54 -04:00
Parker Moore
3c94b4d408
Update history to reflect merge of #2247 [ci skip]
2014-04-19 14:45:04 -04:00
Parker Moore
5b5065d293
Merge pull request #2247 from mrfoto/patch-1
2014-04-19 14:44:41 -04:00
Parker Moore
4da060ca52
Update history to reflect merge of #2244 [ci skip]
2014-04-19 14:19:21 -04:00
Parker Moore
702d5520d4
Merge pull request #2244 from jekyll/xml-escape-nil
2014-04-19 14:18:56 -04:00
Miha Rekar
fae267f72d
rr has moved
2014-04-19 20:07:04 +02:00
Parker Moore
1e16ab4d26
end the ned
2014-04-19 12:35:58 -04:00
Ben Balter
e91a90899c
do the do
2014-04-18 18:12:47 -04:00
Parker Moore
fa9c933773
Update history to reflect merge of #2243 [ci skip]
2014-04-18 17:47:46 -04:00
Parker Moore
810c160e4d
Merge pull request #2243 from RadicalZephyr/master
2014-04-18 17:45:35 -04:00
Geoff Shannon
b07835b35c
Reword slightly to fix typo
...
Also avoid using "you" as well
2014-04-18 14:09:17 -07:00
Ben Balter
4f7b1f3306
no -> not
2014-04-18 16:56:37 -04:00
Ben Balter
6f0bebdfda
convert input to string before xml escaping
2014-04-18 16:54:48 -04:00
Geoff Shannon
1c8fef69aa
Remove "tag" from the link
...
It looks super weird
2014-04-18 13:26:39 -07:00
Geoff Shannon
0b0d3b43a1
Add a to cross-reference about post_url
...
I had a really hard time finding this information on the Jekyll site,
and this seemed like a reasonable place to put a pointer to the
information.
2014-04-18 13:23:43 -07:00
Matt Rogers
22f7380abe
Change the feature to not use `page.name`
...
Use `page.description` in the cucumber feature instead. `page.name`
isn't overridable anymore.
2014-04-15 20:15:16 -05:00
Parker Moore
571fb95cc1
Only read in 5 bytes when checking for YAML header.
...
#2211 #2210
2014-04-15 09:48:44 -04:00
Parker Moore
29fdc0946a
Use +rb switches when reading in file for checking existence of YAML header.
...
Fixes #2228 .
2014-04-15 09:46:53 -04:00
Parker Moore
5d6a07e060
Remove stray sentence from Collections doc page.
2014-04-14 23:19:42 -04:00
Parker Moore
b0cf022983
Release 2.0.0.alpha.3
2014-04-14 23:17:32 -04:00
Parker Moore
2a9c1a2cd2
Update history to reflect merge of #2199 [ci skip]
2014-04-14 23:14:26 -04:00
Parker Moore
cb4a7a52da
Merge pull request #2199 from jekyll/collection-plate
2014-04-14 23:14:06 -04:00
Parker Moore
5a6f1d42a9
Fix #filtered_entries so it returns a new Array if the directory doesn't exist
2014-04-14 23:03:19 -04:00
Parker Moore
696aea211a
Don't gather any entries if the collection directory doesn't exist
2014-04-14 22:56:23 -04:00
Parker Moore
ee29bf3939
Update docs around collections.
2014-04-14 22:46:22 -04:00
Parker Moore
a1af95c34e
Clean up some code per @baweaver's suggestions.
2014-04-14 22:46:22 -04:00
Parker Moore
ad7efb23e6
Code/docs cleanup, props @baweaver
2014-04-14 22:46:22 -04:00
Parker Moore
af61451f87
Use #error instead of #warn when telling the user not to use a custom data source
2014-04-14 22:46:22 -04:00
Parker Moore
2f99e1d5c1
Fix test for non-collectionized sites still containing data coll
2014-04-14 22:46:22 -04:00
Parker Moore
62551b5ff9
Include data in the array of collections
2014-04-14 22:46:22 -04:00
Parker Moore
aa502348e5
Filter entries in the collection per EntryFilter#filter
2014-04-14 22:46:21 -04:00
Parker Moore
323ea0ef73
EntryFilter#special? should also check the base name of the entry
2014-04-14 22:46:21 -04:00
Parker Moore
f0e68d7d86
Expose collections as site.<collection_name> in Liquid as array of docs.
2014-04-14 22:46:21 -04:00
Parker Moore
00ca09a2ea
Add comments for Document
2014-04-14 22:46:21 -04:00
Parker Moore
a307aff858
Do not render any asset files with Liquid.
2014-04-14 22:46:21 -04:00
Parker Moore
5ae1c34857
Add comments for Collection
2014-04-14 22:46:21 -04:00
Parker Moore
45120ad3eb
Moar tests for collections.
2014-04-14 22:46:21 -04:00
Parker Moore
be769dcf00
SANITIZE THE collection name plz.
2014-04-14 22:46:21 -04:00
Parker Moore
d84cde1f7a
Add docs for how the collections stuff is exposed via Liquid.
2014-04-14 22:46:21 -04:00
Ben Balter
aa2fb685d9
I am the King of Copy
2014-04-14 22:46:21 -04:00
Parker Moore
77bb678a3d
Add some documentation
2014-04-14 22:46:21 -04:00
Parker Moore
37a7236e20
Homagah it all renders I think.
2014-04-14 22:46:21 -04:00
Parker Moore
a15a584136
Don't let that render get you down.
2014-04-14 22:46:21 -04:00
Parker Moore
75f49a751e
OMG COLLECTIONS ARE RENDERING CALL THE POLICE
2014-04-14 22:46:21 -04:00
Parker Moore
7fef0302a7
Strike duplicate methods & :collection_name filler
2014-04-14 22:45:20 -04:00