mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
variables in include tag with filters
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: Post
|
||||
layout: post
|
||||
include1: include.html
|
||||
include2: include
|
||||
include3: INCLUDE
|
||||
include4: params
|
||||
---
|
||||
|
||||
Liquid tests
|
||||
- 1 {% include {{ page.include1 }} %}
|
||||
- 2 {% include {{ page.include2 | append: '.html' }} %}
|
||||
- 3 {% include {{ page.include3 | downcase | append: '.html' }} %}
|
||||
- 4 {% include {{ page.include2 | append: '.html' }} %}
|
||||
|
||||
Whitespace tests
|
||||
- 5 {% include {{page.include1}} %}
|
||||
- 6 {% include {{ page.include1}} %}
|
||||
- 7 {% include {{ page.include3 | downcase | append: '.html'}} %}
|
||||
|
||||
Parameters test
|
||||
- 8 {% include {{ page.include4 | append: '.html' }} var1='foo' var2='bar' %}
|
||||
Reference in New Issue
Block a user