From 68e39b624acd3dcd26a20124afe9c4e090971a33 Mon Sep 17 00:00:00 2001 From: Tetsuro Date: Thu, 15 Oct 2015 16:29:00 -0400 Subject: [PATCH] Adjusting layout so that every Basics and Tags' content output their own pages --- _basics/{handle.md => handles.md} | 0 ...{true-and-false.md => truthy-and-falsy.md} | 0 _config.yml | 8 +++ _layouts/default.html | 58 ++++++++++++++----- .../{control-flow-tags.md => control-flow.md} | 25 +++----- _tags/{iteration-tags.md => iteration.md} | 0 _tags/temp-index.md | 15 ----- _tags/{theme-tags.md => theme.md} | 0 _tags/{variable-tags.md => variable.md} | 0 tags/index.html | 10 +--- 10 files changed, 62 insertions(+), 54 deletions(-) rename _basics/{handle.md => handles.md} (100%) rename _basics/{true-and-false.md => truthy-and-falsy.md} (100%) rename _tags/{control-flow-tags.md => control-flow.md} (90%) rename _tags/{iteration-tags.md => iteration.md} (100%) delete mode 100644 _tags/temp-index.md rename _tags/{theme-tags.md => theme.md} (100%) rename _tags/{variable-tags.md => variable.md} (100%) diff --git a/_basics/handle.md b/_basics/handles.md similarity index 100% rename from _basics/handle.md rename to _basics/handles.md diff --git a/_basics/true-and-false.md b/_basics/truthy-and-falsy.md similarity index 100% rename from _basics/true-and-false.md rename to _basics/truthy-and-falsy.md diff --git a/_config.yml b/_config.yml index 0c56828..914ffa2 100644 --- a/_config.yml +++ b/_config.yml @@ -6,12 +6,20 @@ permalink: /:year/:month/:day/:basename:output_ext collections: basics: output: true + permalink: /basics/:path/ filters: output: true tags: output: true + permalink: /tags/:path/ exclude: - README.md - CNAME - node_modules keep_files: ['css'] +defaults: + - + scope: + path: "" # an empty string here means all files in the project + values: + layout: "default" diff --git a/_layouts/default.html b/_layouts/default.html index c644d60..09a097c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -21,21 +21,49 @@ Liquid diff --git a/_tags/control-flow-tags.md b/_tags/control-flow.md similarity index 90% rename from _tags/control-flow-tags.md rename to _tags/control-flow.md index a8909e8..035582e 100644 --- a/_tags/control-flow-tags.md +++ b/_tags/control-flow.md @@ -2,12 +2,12 @@ title: Control Flow --- -Control Flow tags determine which block of code should be executed based on different conditions. +Control Flow tags determine which block of code should be executed based on different conditions. -### if +## if -

Executes a block of code only if a certain condition is met.

+

Executes a block of code only if a certain condition is met.

Input

@@ -28,9 +28,9 @@ These shoes are awesome! -### elsif / else +## elsif / else -

Adds more conditions within an if or unless block.

+

Adds more conditions within an if or unless block.

Input

@@ -58,10 +58,9 @@ Hey Anonymous! +## case/when -### case/when - -

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

+

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

Input

@@ -93,15 +92,9 @@ This is a cake +## unless - - - - - -### unless - -

Similar to if, but executes a block of code only if a certain condition is not met.

+

Similar to if, but executes a block of code only if a certain condition is not met.

Input

diff --git a/_tags/iteration-tags.md b/_tags/iteration.md similarity index 100% rename from _tags/iteration-tags.md rename to _tags/iteration.md diff --git a/_tags/temp-index.md b/_tags/temp-index.md deleted file mode 100644 index 9938738..0000000 --- a/_tags/temp-index.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: Tags ---- - - -Liquid _tags_ are the programming logic that tells templates what to do. Tags are wrapped in: {% %}. - -Certain tags, such as for and cycle can take on parameters. Details for each parameter can be found in their respective sections. - -Tags can be broken down into four categories: - -- [Control Flow Tags](/themes/liquid-documentation/tags/control-flow-tags/) -- [Iteration Tags](/themes/liquid-documentation/tags/iteration-tags/) -- [Theme Tags](/themes/liquid-documentation/tags/theme-tags/) -- [Variable Tags](/themes/liquid-documentation/tags/variable-tags/) \ No newline at end of file diff --git a/_tags/theme-tags.md b/_tags/theme.md similarity index 100% rename from _tags/theme-tags.md rename to _tags/theme.md diff --git a/_tags/variable-tags.md b/_tags/variable.md similarity index 100% rename from _tags/variable-tags.md rename to _tags/variable.md diff --git a/tags/index.html b/tags/index.html index febf7ef..925fb36 100644 --- a/tags/index.html +++ b/tags/index.html @@ -2,11 +2,5 @@ layout: default --- -{% for doc in site.collections["tags"].docs %} -
-

{{ doc.title }}

-
- {{ doc.content }} -
-
-{% endfor %} +Tags here. +