From 1e769d9263703a46885cc8df0fa0a52cd0415d9d Mon Sep 17 00:00:00 2001 From: Adam Hollett Date: Fri, 4 Dec 2015 20:05:47 -0500 Subject: [PATCH] Cleanup and config reorg --- _config.yml | 17 +++++++++------ _data/site.yml | 6 ------ _layouts/default.html | 4 ++-- docs/tags/control-flow/case-when.md | 32 ---------------------------- docs/tags/control-flow/elsif-else.md | 26 ---------------------- docs/tags/control-flow/if.md | 21 ------------------ docs/tags/control-flow/index.html | 14 ------------ docs/tags/control-flow/unless.md | 31 --------------------------- docs/tags/index.html | 11 ---------- feed.xml | 4 ++-- 10 files changed, 15 insertions(+), 151 deletions(-) delete mode 100644 _data/site.yml delete mode 100644 docs/tags/control-flow/case-when.md delete mode 100644 docs/tags/control-flow/elsif-else.md delete mode 100644 docs/tags/control-flow/if.md delete mode 100644 docs/tags/control-flow/index.html delete mode 100644 docs/tags/control-flow/unless.md delete mode 100644 docs/tags/index.html diff --git a/_config.yml b/_config.yml index e4682e2..4f02ad0 100644 --- a/_config.yml +++ b/_config.yml @@ -1,14 +1,19 @@ +title: Liquid Templating Engine +description: "Liquid is a template language and accompanying rendering engine. It is built for security, so is perfect for rendering custom templates from your users." + # Build settings -baseurl: "" # the subpath of your site, e.g. /blog/ -url: "http://liquidmarkup.org" # the base hostname & protocol for your site -markdown: kramdown -highlighter: pygments -permalink: /:year/:month/:day/:basename:output_ext +baseurl: "" # the subpath of your site, e.g. /blog/ +url: http://liquidmarkup.org # the base hostname & protocol for your site +markdown: kramdown +highlighter: pygments +permalink: /:year/:month/:day/:basename:output_ext exclude: - README.md - CNAME - node_modules -keep_files: ['css'] +keep_files: ['css'] + +# Front matter defaults defaults: - scope: path: "" # an empty string here means all files in the project diff --git a/_data/site.yml b/_data/site.yml deleted file mode 100644 index 9c60ea9..0000000 --- a/_data/site.yml +++ /dev/null @@ -1,6 +0,0 @@ -# Site settings -title: Liquid Templating Engine -description: > # this means to ignore newlines until "baseurl:" - Liquid is a template language and accompanying rendering engine. - It is built for security, so is perfect for rendering custom - templates from your users. diff --git a/_layouts/default.html b/_layouts/default.html index 28a03eb..1c507a1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,12 +1,12 @@ - {% if page.title %}{{ page.title }} – {% endif %}{{ site.data.site.title }} + {% if page.title %}{{ page.title }} – {% endif %}{{ site.title }} - + diff --git a/docs/tags/control-flow/case-when.md b/docs/tags/control-flow/case-when.md deleted file mode 100644 index ddc67c8..0000000 --- a/docs/tags/control-flow/case-when.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -category: control-flow ---- - - -## case/when - -

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

- -

Input

- -
-{% highlight html %}{% raw %} -{% assign handle = 'cake' %} -{% case handle %} - {% when 'cake' %} - This is a cake - {% when 'cookie' %} - This is a cookie - {% else %} - This is not a cake nor a cookie -{% endcase %} -{% endraw %}{% endhighlight %} -
- -

Output

- -
-{% highlight html %}{% raw %} -This is a cake -{% endraw %}{% endhighlight %} -
diff --git a/docs/tags/control-flow/elsif-else.md b/docs/tags/control-flow/elsif-else.md deleted file mode 100644 index e08623d..0000000 --- a/docs/tags/control-flow/elsif-else.md +++ /dev/null @@ -1,26 +0,0 @@ -## elsif / else - -

Adds more conditions within an if or unless block.

- -

Input

- -
-{% highlight html %}{% raw %} - - {% if customer.name == 'kevin' %} - Hey Kevin! - {% elsif customer.name == 'anonymous' %} - Hey Anonymous! - {% else %} - Hi Stranger! - {% endif %} -{% endraw %}{% endhighlight %} -
- -

Output

- -
-{% highlight html %}{% raw %} -Hey Anonymous! -{% endraw %}{% endhighlight %} -
diff --git a/docs/tags/control-flow/if.md b/docs/tags/control-flow/if.md deleted file mode 100644 index f41b842..0000000 --- a/docs/tags/control-flow/if.md +++ /dev/null @@ -1,21 +0,0 @@ -## if - -

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

- -

Input

- -
-{% highlight html %}{% raw %} -{% if product.title == 'Awesome Shoes' %} - These shoes are awesome! -{% endif %} -{% endraw %}{% endhighlight %} -
- -

Output

- -
-{% highlight html %}{% raw %} -These shoes are awesome! -{% endraw %}{% endhighlight %} -
diff --git a/docs/tags/control-flow/index.html b/docs/tags/control-flow/index.html deleted file mode 100644 index 9d08db0..0000000 --- a/docs/tags/control-flow/index.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: default ---- - -TAGS! - -{% for doc in site.collections["tags"].docs %} -
-

{{ doc.title }}

-
- {{ doc.content }} -
-
-{% endfor %} diff --git a/docs/tags/control-flow/unless.md b/docs/tags/control-flow/unless.md deleted file mode 100644 index 3733404..0000000 --- a/docs/tags/control-flow/unless.md +++ /dev/null @@ -1,31 +0,0 @@ -## unless - -

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

- -

Input

- -
-{% highlight html %}{% raw %} - {% unless product.title == 'Awesome Shoes' %} - These shoes are not awesome. - {% endunless %} -{% endraw %}{% endhighlight %} -
- -

Output

- -
-{% highlight html %}{% raw %} -These shoes are not awesome. -{% endraw %}{% endhighlight %} -
- -This would be the equivalent of doing the following: - -
-{% highlight html %}{% raw %} - {% if product.title != 'Awesome Shoes' %} - These shoes are not awesome. - {% endif %} -{% endraw %}{% endhighlight %} -
diff --git a/docs/tags/index.html b/docs/tags/index.html deleted file mode 100644 index f0cf854..0000000 --- a/docs/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/feed.xml b/feed.xml index 3aede08..a6628bd 100644 --- a/feed.xml +++ b/feed.xml @@ -4,8 +4,8 @@ layout: null - {{ site.data.site.title | xml_escape }} - {{ site.data.site.description | xml_escape }} + {{ site.title | xml_escape }} + {{ site.description | xml_escape }} {{ site.url }}{{ site.baseurl }}/ {{ site.time | date_to_rfc822 }}