Commit Graph

34 Commits

Author SHA1 Message Date
Parker Moore
19b566e6ea site: use rouge instead of pygments 2016-04-28 18:26:29 -07:00
Thomas Wood
1ef7653fed Fix minor code style recommendations and typos. 2016-04-12 18:59:56 +01:00
Thomas Wood
66c4ff8800 Add a where_exp filter for filtering by expression
This commit introduces a where_exp filter, which can be used as follows:
  `{{ array | where_exp: "item", "item == 10" }}`
  `{{ array | where_exp: "item", "item.field > 10" }}`
  `{{ site.posts | where_exp: "post", "post contains 'field'" }}`
  `{{ site.posts | where_exp: "post", "post.array contains 'giraffes'" }}`

This permits a variety of use cases, such as reported in: jekyll#4467,
jekyll#4385, jekyll#2787.
2016-04-12 18:52:58 +01:00
Parker Moore
af47b3c1a7 Fix documentation for push/pop/shift/unshift
/cc https://github.com/jekyll/jekyll/pull/4384
2016-03-17 15:50:50 -07:00
Aaron Sky
0c73a6ded9 Update Templates Docs to include Array Filters
PR #2895 merged this in, but there isn't any documentation anywhere for this as far as I can find. All the Stack Overflow answers I could find said it was impossible to push and pop elements from a Liquid array, although that's probably because they were using Shopify's Liquid.

Fixes https://github.com/jekyll/jekyll/pull/4384
2016-03-17 15:50:18 -07:00
Pat Hawks
428e4fe3b5 Add documentation for smartify Liquid filter 2016-01-09 16:46:27 -08:00
Parker Moore
86195655d7 filters: allow sample(n) instead of just sample(1) 2015-12-04 09:40:57 -08:00
Parker Moore
96bc62c666 Add 'sample' Liquid filter
Equivalent to Array#sample functionality
2015-12-04 09:33:33 -08:00
Parker Moore
3417a33e7a Update templates docs to reflect Rouge default.
Fixes #3323
2015-11-23 08:37:57 -08:00
Sarah Kuehnle
3b42be6e39 Adds a note about installing the jekyll-gist gem to make gist tags work in Jekyll. 2015-11-03 07:05:21 -05:00
David Wales
b02342312b Change phrase 'variable parameter' 2015-03-18 11:52:22 +11:00
David Wales
16a2cfed49 Change format from all caps to strong. 2015-03-18 10:27:02 +11:00
David Wales
c83b016219 Document variable parameters for include.
The documentation has been updated to demonstrate variable parameters for an include.

    {% include footer.html param="value" variable-param=page.variable %}
2015-03-17 15:02:50 +11:00
David Wales
778429c6cc Document variable parameters for include.
The documentation has been updated to demonstrate variable parameters for an include.

    {% include footer.html param="value" variable-param=page.variable %}
2015-03-17 14:55:13 +11:00
chrisfinazzo
b5a73373ff Wrap lines 2015-03-11 20:17:23 -04:00
Mark Phelps
9a0db42436 Updating Rogue description text based on feedback. 2015-02-17 15:27:15 -05:00
Mark Phelps
dbead70168 Fix wording in code snippet highlighting section 2015-02-17 08:17:45 -05:00
Nic West
4f078ee2e8 fix missing char in template docs 2015-02-07 10:31:41 +00:00
Parker Moore
c1da91cf5c Start removing mentions of Textile. 2015-01-17 16:51:28 -08:00
Parker Moore
10659e1eef Merge branch 'nitoyon-slugify-new-param'
* nitoyon-slugify-new-param:
  Remove superfluous Sass declarations.
  Move the slugify options out to their own section so as to fix the formatting.
  Document the mode parameter of slugify Liquid filter
  Add tests for mode parameters of slugify Liquid filter
  Add mode parameter to slugify Liquid filter

Conflicts:
	lib/jekyll/utils.rb

        ---> Hadn't added UTF-8 support in nitoyon's PR.
2015-01-17 16:06:10 -08:00
Parker Moore
6081fcd75a Move the slugify options out to their own section so as to fix the formatting. 2015-01-17 16:00:35 -08:00
Alan Scherger
c26f040bcf Eliminate the need for prev_section and next_section metadata. 2015-01-11 21:19:14 -08:00
Jesse Pinho
52085d2e34 Fix a few punctuation errors 2014-12-24 17:01:51 -06:00
Fabien Schurter
974fab6c9c Fix a typo
Replaced "capaibilities" with correct spelling: "capabilities".
2014-11-28 04:14:26 +01:00
nitoyon
ae57f693e4 Document the mode parameter of slugify Liquid filter 2014-10-12 02:50:08 +09:00
Parker Moore
bf1a2320e2 Merge pull request #2887 from pathawks/Update-Liquid-Links 2014-09-14 14:54:17 -07:00
nitoyon
86af9952ce Fix quote character typo in site documentation for templates 2014-09-13 23:55:17 +09:00
Pat Hawks
99b5569ffa Point Liquid links to Liquid’s Github wiki
Provide a more helpful resource for questions like #2883
2014-09-09 23:20:40 -07:00
Garen Torikian
5fe73a6671 Add some more docs on include_relative 2014-09-07 21:24:05 -07:00
Parker Moore
6644c77d23 Merge pull request #2870 from gjtorikian/support-relative-include 2014-09-07 13:05:38 -07:00
Garen Torikian
afd30b0a9b Add documentation on the include_relative tag 2014-09-07 12:14:19 -07:00
Chris Frederick
a2fedfc615 Document the slugify Liquid filter 2014-09-07 17:01:53 +09:00
Parker Moore
839501e012 Add some minimal docs for scssify and sassify filters. #2739 [ci skip] 2014-08-13 00:03:57 -04:00
Parker Moore
e57cd0031d Use site.docs instead of site.pages. 2014-07-31 04:34:38 -04:00