diff --git a/Gruntfile.js b/Gruntfile.js index a197524..ba8dd39 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -15,12 +15,10 @@ require('load-grunt-tasks')(grunt); atBegin: true } }, - jekyll: { - files: ['index.html', '_includes/*.html', '_filters/*.*', '_layouts/*.*', '_posts/*.*'], + files: ['index.md', '_includes/*.html', '_filters/*.*', '_layouts/*.*', '_tags/*.*', '_basics/*.*'], tasks: ['shell:jekyllBuild'] } - }, sass: { diff --git a/_basics/handle.md b/_basics/handle.md index 55e0e63..2538fa3 100644 --- a/_basics/handle.md +++ b/_basics/handle.md @@ -2,16 +2,9 @@ title: Handles --- -# Handles +### What is a handle - - - - - -## What is a handle - -The handle is used to access the attributes of a Liquid object. By default, it is the object's title in lowercase with any spaces and special characters replaced by hyphens (-). Every object in Liquid (product, collection, blog, link list) has a handle. +The handle is used to access the attributes of a Liquid object. By default, it is the object's title in lowercase with any spaces and special characters replaced by hyphens (-). For example, a page with the title "About Us" can be accessed in Liquid via its handle about-us as shown below: @@ -20,7 +13,7 @@ For example, a page with the title "About Us" can be accessed in Liquid via its {{ pages.about-us.content }} {% endraw %}{% endhighlight %} -## How are my handles created? +### How are my handles created? A product with the title "Shirt" will automatically be given the handle **shirt**. If there is already a product with the handle "Shirt", the handle will auto-increment. In other words, all "Shirt" products created after the first one will receive the handle **shirt-1**, **shirt-2**, and so on. diff --git a/_basics/operators.md b/_basics/operators.md index 0f5b7cc..2d63208 100644 --- a/_basics/operators.md +++ b/_basics/operators.md @@ -2,14 +2,9 @@ title: Operators --- -# Operators +Liquid has access to all of the logical and comparison operators. - - -Liquid has access to all of the logical and comparison operators. These can be used in tags such as if and unless. - - -## Basic Operators +### Basic Operators