From 95dc90e503049eb0d3d0c9ebd677c312412b6097 Mon Sep 17 00:00:00 2001 From: Tetsuro Date: Fri, 4 Dec 2015 20:31:06 -0500 Subject: [PATCH] Begin work on input/output standardization --- _sass/modules/_base.scss | 3 +- _sass/modules/_content-area.scss | 20 ++------- basics/handles.md | 2 +- basics/operators.md | 4 +- basics/types.md | 2 +- tags/{control.flow.md => control-flow.md} | 8 ++-- tags/index.html | 11 ----- tags/variable.md | 53 ++--------------------- 8 files changed, 16 insertions(+), 87 deletions(-) rename tags/{control.flow.md => control-flow.md} (97%) delete mode 100644 tags/index.html diff --git a/_sass/modules/_base.scss b/_sass/modules/_base.scss index a2569c0..81e81b7 100644 --- a/_sass/modules/_base.scss +++ b/_sass/modules/_base.scss @@ -64,7 +64,7 @@ li { /** Headings */ h1, h2, h3, h4, h5, h6 { - font-weight: 300; + font-weight: bold; } /** Links */ @@ -87,6 +87,7 @@ h1 { h2 { font-size: 1.5em; + text-decoration: underline; } h3 { diff --git a/_sass/modules/_content-area.scss b/_sass/modules/_content-area.scss index 7edc6a1..26bde52 100644 --- a/_sass/modules/_content-area.scss +++ b/_sass/modules/_content-area.scss @@ -1,23 +1,9 @@ .content__item { margin-bottom: $spacing-unit * 2; - - h3 { - text-decoration: underline; - } } -.content__list { - - h1 { - font-weight: bold; - } - - h2 { - font-weight: bold; - text-decoration: underline; - - &:not(:first-child) { - margin-top: $spacing-unit * 2; - } +.code--input { + &:before { + content: 'stuff' } } diff --git a/basics/handles.md b/basics/handles.md index 023fee1..40c0e60 100644 --- a/basics/handles.md +++ b/basics/handles.md @@ -2,7 +2,7 @@ title: Handles --- -sss A handle is used to access the attributes of a Liquid object. By default, the handle is the object's title in lowercase with any spaces and special characters replaced by hyphens (-). +A handle is used to access the attributes of a Liquid object. By default, the handle 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: diff --git a/basics/operators.md b/basics/operators.md index 6719aa5..736eacf 100644 --- a/basics/operators.md +++ b/basics/operators.md @@ -4,7 +4,7 @@ title: Operators Liquid includes many logical and comparison operators. -### Basic Operators +## Basic Operators @@ -63,7 +63,7 @@ You can use multiple operators in a tag: {% endraw %}{% endhighlight %} -### contains +## contains `contains` checks for the presence of a substring inside a string. diff --git a/basics/types.md b/basics/types.md index 7b56831..5a52d54 100644 --- a/basics/types.md +++ b/basics/types.md @@ -79,7 +79,7 @@ The current user is Arrays hold lists of variables of any type. -#### Accessing items in arrays +### Accessing items in arrays To access all of the items in an array, you can loop through each item in the array using a [for](/tags/#for) or [tablerow](/tags/#tablerow) tag. diff --git a/tags/control.flow.md b/tags/control-flow.md similarity index 97% rename from tags/control.flow.md rename to tags/control-flow.md index 881df7d..0ae479d 100644 --- a/tags/control.flow.md +++ b/tags/control-flow.md @@ -1,15 +1,13 @@ --- +title: Control Flow --- -TAGS! - ## case/when

Creates a switch statement to compare a variable with different values. case initializes the switch statement, and when compares its values.

-

Input

- -
+

Input

+
{% highlight html %}{% raw %} {% assign handle = 'cake' %} {% case handle %} diff --git a/tags/index.html b/tags/index.html deleted file mode 100644 index f0cf854..0000000 --- a/tags/index.html +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: default ---- - -sss - -{{ site.collections["tags"] }} - -{% for doc in site.collections["tags"].docs %} - -{% endfor %} diff --git a/tags/variable.md b/tags/variable.md index 50a7685..a58880c 100644 --- a/tags/variable.md +++ b/tags/variable.md @@ -7,7 +7,7 @@ Variable Tags are used to create new Liquid variables. -### assign +## assign

Creates a new variable.

@@ -50,7 +50,7 @@ bar
-### capture +## capture

Captures the string inside of the opening and closing tags and assigns it to a variable. Variables created through {% capture %} are strings.

@@ -72,46 +72,7 @@ I am being captured. {% endraw %}{% endhighlight %}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### increment +## increment Creates a new number variable, and increases its value by one every time it is called. The initial value is 0. @@ -161,13 +122,7 @@ In the example below, a variable named "var" is created through assign - - - - - - -### decrement +## decrement Creates a new number variable, and decreases its value by one every time it is called. The initial value is -1.