There's so many Jekyll variables and filters to remember it can be tricky to keep it all in your head. This cheat sheet serves as a quick reference of everything Jekyll can do.
The full path to the collections’s source directory.
{{ site.my_collection.directory }}
/Users/mike/jekyll-project/_my_collection
An array of the collection’s documents.
{{ site.my_collection.docs.first.url }}
/my_collection/item.html
An array of static files in the collection.
{{ site.my_collection.files | size }}
0
The name of your collection.
{{ site.my_collection.label }}
my_collection
Whether the collection’s documents will be output as individual files.
{{ site.my_collection.output }}
true
The path to the document’s source file relative to the site source.
{{ site.collections.my_collection.relative_path }}
_my_collection
Label of the containing collection.
{{ site.my_collection.first.collection }}
my_collection
The content of the collection item, rendered or un-rendered depending upon what Liquid is being processed and the item is.
{{ site.my_collection.first.content }}
Hello from my_collection.
The path to the document’s source file relative to the site source.
{{ site.my_collection.first.relative_path }}
_my_collection/item.md
In layout files, the rendered content of the Post or Page being wrapped. Not defined in Post or Page files.
Page specific information + the YAML front matter. Custom variables set via the YAML Front Matter will be available here.
Sitewide information + configuration settings from _config.yml
.
Append characters to a string.
<!-- page.my_array is ['a', 'b', 'c'] -->
{{ page.my_array | array_to_sentence_string }}
{{ page.my_array | array_to_sentence_string: 'or' }}
a, b, and c
a, b, or c
Get the first element of the passed in array.
<!-- page.my_array is ['a', 'b', 'c'] -->
{{ page.my_array | first }}
a
Group an array’s items using a Liquid expression.
<!-- page.people is
- name: "John"
school: "Stanford"
year: 2016
- name: "Jane"
school: "Stanford"
year: 2017
- name: "Joe"
school: "Harvard"
year: 2015
-->
{{ page.people | group_by_exp: "item", "item.name | size" }}
{{ page.people | group_by_exp: "item", "item.year | modulo: 2" }}
{{ page.people | group_by_exp: "item", "item.school | replace: 'rd', 'ry' " }}
{"name"=>4, "items"=>[{"name"=>"John", "school"=>"Stanford", "year"=>2016}, {"name"=>"Jane", "school"=>"Stanford", "year"=>2017}], "size"=>2}{"name"=>3, "items"=>[{"name"=>"Joe", "school"=>"Harvard", "year"=>2015}], "size"=>1}
{"name"=>0, "items"=>[{"name"=>"John", "school"=>"Stanford", "year"=>2016}], "size"=>1}{"name"=>1, "items"=>[{"name"=>"Jane", "school"=>"Stanford", "year"=>2017}, {"name"=>"Joe", "school"=>"Harvard", "year"=>2015}], "size"=>2}
{"name"=>"Stanfory", "items"=>[{"name"=>"John", "school"=>"Stanford", "year"=>2016}, {"name"=>"Jane", "school"=>"Stanford", "year"=>2017}], "size"=>2}{"name"=>"Harvary", "items"=>[{"name"=>"Joe", "school"=>"Harvard", "year"=>2015}], "size"=>1}
Group an array’s items by a given property.
<!-- page.people is
- name: "John"
school: "Stanford"
- name: "Jane"
school: "Stanford"
- name: "Joe"
school: "Harvard"
-->
{{ page.people | group_by: "school" }}
{
"name"=>"Stanford",
"items"=>[{
"name"=>"John",
"school"=>"Stanford"
}, {
"name"=>"Jane",
"school"=>"Stanford"
}]
},
{
"name"=>"Harvard",
"items"=>[{
"name"=>"Joe",
"school"=>"Harvard"
}]
}
Joins an array with the specified character.
<!-- page.my_array is ['a', 'b', 'c'] -->
{{ page.my_array | join: ', ' }}
a, b, c
Convert Hash or Array to JSON.
<!-- page.my_array is ['a', 'b', 'c'] -->
{{ page.my_array | jsonify }}
["a","b","c"]
Get the last element of the passed in array.
<!-- page.my_array is ['a', 'b', 'c'] -->
{{ page.my_array | last }}
c
Accepts an array element’s attribute as a parameter and creates a string out of each array element’s value.
<!-- page.people is
- name: "John"
school: "Stanford"
- name: "Jane"
school: "Stanford"
- name: "Joe"
school: "Harvard"
-->
{{ page.people | map: "name" }}
JohnJaneJoe
Adds an object to a array.
{% assign my_array = "a,b,c" | split:"," %}
{% assign my_array = my_array | push: 'd' %}
{{ my_array | array_to_sentence_string }}
a, b, c, and d
Return the size of an array or string.
<!-- page.my_array is ['a', 'b', 'c'] -->
{{ page.my_array | size }}
3
Sorts an array.
<!-- page.my_array is ['c', 'a', 'b'] -->
{{ page.my_array | sort }}
['a','b','c']
You can add a argument to sort on a property name:
{{ page.posts | sort: 'author' }}
And also add a second argument to say whether the nils should be first or last:
{{ page.posts | sort: 'author', 'last' }}
Removes duplicate elements from an array.
<!-- page.my_array is ['cat', 'dog', 'mouse', 'cat'] -->
{{ page.my_array | uniq }}
'cat', 'dog', 'mouse'
Select all the objects in an array where the key has the given value.
<!-- page.people is
- name: "John"
school: "Stanford"
- name: "Jane"
school: "Stanford"
- name: "Joe"
school: "Harvard"
-->
{{ page.people | where: "school", "Stanford" }}
{"name"=>"John", "school"=>"Stanford"}{"name"=>"Jane", "school"=>"Stanford"}
Select all the objects in an array where the expression is true.
<!-- page.people is
- name: "John"
school: "Stanford"
year: 2016
- name: "Jane"
school: "Stanford"
year: 2017
- name: "Joe"
school: "Harvard"
year: 2015
-->
{{ page.people | where_exp: "item", "item.name contains 'Jo'" }}
{{ page.people | where_exp: "item", "item.year >= 2016" }}
{{ page.people | where_exp: "item", "item.school != "Stanford" }}
{"name"=>"John", "school"=>"Stanford", "year"=>2016}{"name"=>"Joe", "school"=>"Harvard", "year"=>2015}
{"name"=>"John", "school"=>"Stanford", "year"=>2016}{"name"=>"Jane", "school"=>"Stanford", "year"=>2017}
{"name"=>"Joe", "school"=>"Harvard", "year"=>2015}
Convert a date to long format.
{{ site.time | date_to_long_string }}
01 January 2016
Convert a Date into RFC-822 format.
{{ site.time | date_to_rfc822 }}
Mon, 07 Nov 2008 13:07:54 -0800
Convert a date to short format.
{{ site.time | date_to_string }}
01 Jan 2016
Convert a Date into ISO 8601 format.
{{ site.time | date_to_xmlschema }}
2008-11-07T13:07:54-08:00
Converts a date into another format.
{{ site.time | date: "%a, %b %d, %y" }}
Wed, Jan 27, 16
Rounds a number up to the nearest whole number.
{{ 1.2 | ceil }}
2
Integer division.
{{ 10 | divided_by:3 }}
3
Rounds a number down to the nearest whole number.
{{ 1.2 | floor }}
1
Subtraction.
{{ 4 | minus:1 }}
3
Remainder.
{{ 3 | modulo:2 }}
1
Addition.
{{ 4 | plus:1 }}
5
Rounds a number to the nearest whole number.
{{ 1.8 | round }}
2
Integer multiplication.
{{ 10 | times:3 }}
30
Prepend the baseurl
and url
to the input.
<!-- baseurl is set to "/mysite" in _config.yml -->
<!-- url is set to "http://example.com" in _config.yml -->
{{ '/images/dog.jpeg' | absolute_url }}
http://example.com/mysite/images/dog.jpeg
Append characters to a string.
{{ 'jekyll' | append: '.jpg' }}
jekyll.jpg
Capitalizes the first character.
{{ "static site generator" | capitalize }}
Static site generator
Escape a string for use in a URL.
{{ "foo,bar;baz?" | cgi_escape }}
foo%2Cbar%3Bbaz%3F
Set a fallback incase a value doesn’t exist.
{{ nil | default: "hello" }}
hello
Converts a string to lowercase.
{{ "STATIC Site generator" | downcase }}
static site generator
Returns an escaped version of html.
{{ "<p>Jekyll</p>" | escape }}
&lt;p&gt;Jekyll&lt;/p&gt;
Removes whitespace characters from the beginning of a string.
{{ ' I love Jekyll! ' | lstrip }}
I love Jekyll!
Convert a Markdown-formatted string into HTML.
{{ "Hello **Jekyll**" | markdownify }}
Hello <strong>Jekyll</strong>
Count the number of words in a string.
{{ "Hi Jekyll!" | number_of_words }}
2
Prepend characters to a string.
{{ 'Jekyll' | prepend: 'I love ' }}
I love Jekyll
Prepend the baseurl
value to the input.
<!-- baseurl is set to "/mysite" in _config.yml -->
{{ '/images/dog.jpeg' | relative_url }}
/mysite/images/dog.jpeg
Removes only the first occurrence of a substring from a string.
{{ 'I really really like Jekyll' | remove_first: 'really' }}
I really like Jekyll
Removes any occurrence of a substring from a string.
{{ 'I really really like Jekyll' | remove: 'really' }}
I like Jekyll
Replaces only the first occurrence of a substring from a string.
{{ 'I really really like Jekyll' | replace_first: 'really', 'kinda' }}
I kinda really like Jekyll
Replaces any occurrence of a substring from a string.
{{ 'I really really like Jekyll' | replace: 'really', 'truly' }}
I truly truly like Jekyll
Removes whitespace characters from the end of a string.
{{ ' I love Jekyll! ' | rstrip }}
I love Jekyll!
Convert a Sass string into CSS output.
// assigned to sass_code
body
color: #333
// ignored comment
background-color: yellow
p
/* fixed comment
color: green
{{ sass_code | sassify }}
body {
color: #333;
background-color: yellow;
}
body p {
/* fixed comment */
color: green;
}
Convert a SCSS string into CSS output.
// assigned to scss_code
body {
color: #333;
// ignored comment
background-color: yellow;
p {
/* fixed comment */
color: green;
}
}
{{ scss_code | sassify }}
body {
color: #333;
background-color: yellow;
}
body p {
/* fixed comment */
color: green;
}
Return the size of a string.
<!-- page.my_string is jekyll -->
{{ page.my_string | size }}
6
returns a substring, starting at the specified index.
{{ "hello" | slice: 0 }}
{{ "hello" | slice: 1 }}
{{ "hello" | slice: 1, 3 }}
{{ "hello" | slice: -2 }}
{{ "hello" | slice: -3, 2 }}
h
e
ell
l
ll
Convert a string into a lowercase URL slug.
{{ "The _config.yml file" | slugify }}
the-config-yml-file
The slugify filter accepts an option, each specifying what to filter. The default is default. They are as follows (with what they filter):
none
: no charactersraw
: spacesdefault
: spaces and non-alphanumeric characterspretty
: spaces and non-alphanumeric characters except for ._~!$&'()+,;=@
Convert quotes into smart quotes with SmartyPants
{{ 'Use "Jekyll" --- the static generator...' | smartify }}
Use “Jekyll” — the static generator…
Divide a string into an array.
{{ "a~b" | split:"~" }}
['a', 'b']
Strip all html tags from the input string.
{{ "<p>Jekyll is cool</p>" | strip_html }}
Jekyll is cool
Strip all new line characters from the input string.
{{ "Hello
there" | strip_newlines }}
Hello there
Removes whitespace characters from around a string.
{{ ' I love Jekyll! ' | strip }}
I love Jekyll!
Truncate a string down to x characters.
{{ "I love Jekyll" | truncate: 12 }}
{{ "I love Jekyll" | truncate: 12, " etc." }}
I love Je...
I love etc.
Truncate string down to x words.
{{ "I love Jekyll" | truncatewords: 2 }}
I love...
Converts a string to uppercase.
{{ "static site generator" | upcase }}
STATIC SITE GENERATOR
URI escape a string.
{{ "foo, bar \baz?" | uri_escape }}
foo,%20bar%20%5Cbaz?
Encodes any characters unsafe for a URL.
{{ "john@example.com" | url_encode }}
john%40example.com
Select all the objects in an array where the key has the given value.
{{ "<p>Hi Jekyll</p>"| xml_escape }}
&lt;p&gt;Hi Jekyll&lt;/p&gt;
Condition when there are no items in the array.
<!-- page.my_array is [] -->
{% for item in page.my_array %}
{{ item }}
{% else %}
There are no items!
{% endfor %}
There are no items!
Returns whether it’s the first iteration.
<!-- page.my_array is [1, 2, 3] -->
{% for item in page.my_array %}
{% if forloop.first %}
First!
{% else %}
Not first
{% endif %}
{% endfor %}
First! Not first Not first
index of the current iteration.
<!-- page.my_array is ['a', 'b', 'c'] -->
{% for item in page.my_array %}
{{ forloop.index }}
{% endfor %}
1 2 3
index of the current iteration (zero based).
<!-- page.my_array is ['a', 'b', 'c'] -->
{% for item in page.my_array %}
{{ forloop.index0 }}
{% endfor %}
0 1 2
Returns whether it’s the last iteration.
<!-- page.my_array is [1, 2, 3] -->
{% for item in page.my_array %}
{% if forloop.last %}
Last!
{% else %}
Not last
{% endif %}
{% endfor %}
Not last Not last Last!
Length of the entire loop.
<!-- page.my_array is ['a', 'b', 'c'] -->
{% for item in page.my_array %}
{{ forloop.length }}
{% endfor %}
3 3 3
Restrict how many items are looped through.
<!-- page.my_array is [1, 2, 3, 4, 5] -->
{% for item in page.my_array limit: 2 %}
{{ item }}
{% endfor %}
1 2
Start looping from the nth item.
<!-- page.my_array is [1, 2, 3, 4, 5] -->
{% for item in page.my_array offset: 2 %}
{{ item }}
{% endfor %}
3 4 5
Reverses the order.
<!-- page.my_array is [1, 2, 3, 4, 5] -->
{% for item in page.my_array reversed %}
{{ item }}
{% endfor %}
5 4 3 2 1
Outputs the number of iterations left.
<!-- page.my_array is ['a', 'b', 'c'] -->
{% for item in page.my_array %}
{{ forloop.rindex }}
{% endfor %}
3 2 1
Outputs the number of iterations left (zero based).
<!-- page.my_array is ['a', 'b', 'c'] -->
{% for item in page.my_array %}
{{ forloop.rindex0 }}
{% endfor %}
2 1 0
Creates a switch statement to compare a variable with different values. case
initializes the switch statement, and when
compares its values.
<!-- page.name is set to "home" -->
{% case page.name %}
{% when 'home' %}
Home Page
{% when 'about' %}
About Page
{% else %}
Contact Page
{% endcase %}
Home Page
Adds more conditions to an if
or unless
block.
<!-- page.name is set to "contact" -->
{% if page.name == 'about' %}
About Page
{% elsif page.name == 'contact' %}
Contact Page
{% else %}
Other Page
{% endif %}
Contact Page
Executes a block of code only if a certain condition is met.
<!-- page.name is set to "about" -->
{% if page.name == 'about' %}
About Page
{% endif %}
About Page
Operators used in logic statements.
Similar to if
, but executes a block of code only if a certain condition is not met.
<!-- page.name is set to "about" -->
{% unless page.name == "contact" %}
It's not the contact page
{% endunless %}
It's not the contact page
Which is the same as doing:
{% if page.name != "contact" %}
It's not the contact page
{% endif %}
Causes the loop to stop iterating.
{% for i in (1..5) %}
{% if i == 3 %}
{% break %}
{% else %}
{{ i }}
{% endif %}
{% endfor %}
1 2
Causes the loop to skip the current iteration.
{% for i in (1..5) %}
{% if i == 3 %}
{% continue %}
{% else %}
{{ i }}
{% endif %}
{% endfor %}
1 2 4 5
Loops through a group of strings and outputs them in the order that they were passed as parameters.
cycle
must be used within a for loop block.
{% for i in (1..5) %}
{% cycle 'red', 'blue', 'yellow' %}
{% endfor %}
red blue yellow red blue
Creates a new variable and every time it’s called the value decreases by 1, with the initial value being -1.
{% decrement my_variable %}
{% decrement my_variable %}
{% decrement my_variable %}
-1
-2
-3
Like increment
, variables declared inside decrement are independent from variables created through assign or capture.
Repeatedly executes a block of code.
{% for page in site.pages %}
{{ page.title }}
{% endfor %}
index
about
contact
Creates a new variable and every time it’s called the value increases by 1, with the initial value being 0.
{% increment my_variable %}
{% increment my_variable %}
{% increment my_variable %}
0
1
2
Variables created through the increment
tag are independent from variables created through assign
or capture
.
In the example below, my_var
is created through assign
. The increment
tag is then used several times on a variable with the same name. However, note that the increment
tag does not affect the value of my_var
that was created through assign
.
{% assign my_var = 15 %}
{% increment var %}
{% increment var %}
{% increment var %}
{{ my_var }}
0
1
2
15
Don’t output the contained text.
My name is {% comment %}Mr{% endcomment %} Jekyll
My name is Jekyll
Code snippet highlighting.
{% highlight ruby %}
def foo
puts 'foo'
end
{% endhighlight %}
<div class="highlight">
<pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">foo</span>
<span class="nb">puts</span> <span class="s1">'foo'</span>
<span class="k">end</span></code></pre></div>
Inserts a file from the _includes
directory.
<h1>My site</h1>
{% include nav.html %}
<h1>My Site</h1>
<ul class="nav">
<li><a href="/">Home</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
Includes a file relative to the current file.
<h1>My site</h1>
{% include_relative about.html %}
<h1>My Site</h1>
<h1>About</h1>
Generate the correct permalink URL for the path you specify.
{% link _collection/my-document.md %}
{% link _posts/2017-03-15-my-post.md %}
{% link blog/index.html %}
{% link assets/document.pdf %}
/my_collection/custom-permalink/my-document/
/blog/my-post/
/blog/
/assets/document.pdf
Generate the correct permalink URL for a post.
{% post_url 2010-07-21-name-of-post %}
/news/2010/07/21/name-of-post/
No liquid will be parsed in within these tags.
~~~liquid{% raw %} {{ page.title }} {% endraw %}
##### Output
~~~html
{{ page.title }}
Create a new variable.
{% assign my_variable = false %}
{% if my_variable != true %}
Hi there!
{% endif %}
Hi there!
Captures the string inside of the opening and closing tags and assigns it to a variable.
{% capture my_variable %}
Captured text.
{% endcapture %}
{{ my_variable }}
Captured text.
> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.
<blockquote>
<p>Blockquotes are very handy in email to emulate reply text.
This line is part of the same quote.</p>
</blockquote>
```
def what?
42
end
```
{: .language-ruby}
<pre>
<code class="language-ruby">
def what?
42
end
</code>
</pre>
HTML
: Hypertext Markup Language, a standardized system for tagging text files.
CSS
: Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language
<dl>
<dt>HTML</dt>
<dd>Hypertext Markup Language, a standardized system for tagging text files.</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language</dd>
</dl>
# H1
## H2
### H3
#### H4
##### H5
###### H6
<h1 id="h1">H1</h1>
<h2 id="h2">H2</h2>
<h3 id="h3">H3</h3>
<h4 id="h4">H4</h4>
<h5 id="h5">H5</h5>
<h6 id="h6">H6</h6>
---
<hr />
1. First item
2. Second item
3. Third item
* First item
* Second item
* Third item
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines
<p>A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines</p>
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
<table>
<thead>
<tr>
<th>Tables</th>
<th style="text-align: center">Are</th>
<th style="text-align: right">Cool</th>
</tr>
</thead>
<tbody>
<tr>
<td>col 3 is</td>
<td style="text-align: center">right-aligned</td>
<td style="text-align: right">$1600</td>
</tr>
<tr>
<td>col 2 is</td>
<td style="text-align: center">centered</td>
<td style="text-align: right">$12</td>
</tr>
<tr>
<td>zebra stripes</td>
<td style="text-align: center">are neat</td>
<td style="text-align: right">$1</td>
</tr>
</tbody>
</table>
**strong** text
_emphasis_ text
`inline` code
[link](http://jekyllrb.com) text
![Alt tag](/path/to/image.jpg)
<p><strong>strong</strong> text</p>
<p><em>emphasis</em> text</p>
<p><code>inline</code> code</p>
<p><a href="http://jekyllrb.com">link</a> text</p>
<p><img src="/path/to/image.jpg" alt="Alt tag" /></p>
The path to the raw post or page.
{{ page.path }}
index.html
The URL of the Post without the domain, but with a leading slash.
{{ page.url }}
/index.html
The list of categories to which this post belongs.
<!-- tags is set to
categories:
- news
-->
{{ page.categories | array_to_sentence_string }}
news
The content of the post, rendered or un-rendered depending upon what Liquid is being processed and what post
is.
{{ page.content }}
Hello World!
The date assigned to the Post.
{{ page.date }}
2016-02-02 00:00:00 -0800
The un-rendered excerpt of the Post.
{{ page.excerpt }}
Hello World!
An identifier unique to the Post.
{{ page.id }}
/2015/10/11/hello-world
The next post relative to the position of the current post in site.posts
. Returns nil
for the last entry.
{{ page.next.title }}
/2016/01/02/hello-world.html
The previous post relative to the position of the current post in site.posts
. Returns nil
for the first entry.
{{ page.previous.title }}
/2016/01/02/im-fleeting.html
The list of tags to which this post belongs.
<!-- tags is set to
tags:
- HTML
- CSS
-->
{{ page.tags | array_to_sentence_string }}
HTML and CSS
The title of the post.
{{ page.title }}
Hello World
The list of all Posts in a category.
{% for p in site.categories.news %}
{{ p.url }}
{% endfor %}
/2016/01/03/goodbye-world.html
/2016/01/01/hello-world.html
A list of all the collections.
{{ site.collections | size }}
1
All the variables set via the command line and your _config.yml
are available through site
.
<!-- url is set to http://mysite.com in the configuration file -->
{{ site.url }}
http://mysite.com
A list containing the data loaded from the YAML, JSON and CSV files located in the _data directory.
{{ site.data.nba_players.first.name }}
Michael Jordan
A list of all the documents in every collection.
{{ site.documents | size }}
19
A subset of site.pages
listing those which end in .html
{% for p in site.html_pages %}
{{ p.path }}
{% endfor %}
about.html
contact.html
index.html
A list of all Pages.
{% for p in site.pages %}
{{ p.path }}
{% endfor %}
about.html
contact.html
index.html
site-map.xml
A reverse chronological list of all Posts.
{% for p in site.posts %}
{{ p.url }}
{% endfor %}
/2016/01/03/goodbye-world.html
/2016/01/02/im-fleeting.html
/2016/01/01/hello-world.html
If the page being processed is a Post, this contains a list of up to ten related Posts. By default, these are the ten most recent posts.
<!-- run on /_posts/2016-01-01-hello-world.md -->
{% for p in site.related_posts %}
{{ p.title }}
{% endfor %}
Goodbye World
Im Fleeting
A list of all static files (i.e. files not processed by Jekyll’s converters or the Liquid renderer).
{% for file in site.static_files %}
{{ file.path }}
{% endfor %}
/css/style.css
/js/my-script.js
The list of all Posts with a particular tag.
{% for p in site.tags.sad %}
{{ p.url }}
{% endfor %}
/2016/01/03/goodbye-world.html
/2016/01/02/im-fleeting.html
The current time (when you run the jekyll command).
{{ site.time }}
2016-01-28 08:32:19 -0800
The extension name for the file.
{{ site.static_files.first.extname }}
.css
The time the file was last modified.
{{ site.static_files.first.modified_time }}
1454000258
The relative path to the file.
{{ site.static_files.first.path }}
/css/style.css
# Nest hash
my_hash:
subkey:
subsubkey1: 5
subsubkey2: 6
another:
somethingelse: 'Important!'
# Hash of hashes
my_hash: {nr1: 5, nr2: 6}
# sequence
array:
- 132
- 2.434
- 'abc'
# sqeuence of sequences
my_array:
- [1, 2, 3]
- [4, 5, 6]
a: 1
b: 1.234
c: 'abc'
d: "abc"
e: abc
f: false # boolean type
g: 2015-04-05 # date type
# Enforcing strings
h: !str 2015-04-05