diff --git a/_config.yml b/_config.yml index f575d73..d42a8a7 100644 --- a/_config.yml +++ b/_config.yml @@ -17,12 +17,5 @@ defaults: - scope: path: "" - type: "filters" - values: - layout: "default" - - - scope: - path: "" - type: "tags" values: layout: "default" diff --git a/_filters/split.md b/_filters/split.md index 83b15cd..0aa4673 100644 --- a/_filters/split.md +++ b/_filters/split.md @@ -1,3 +1,23 @@ --- title: split --- + +The `split` filter takes on a substring as a parameter. The substring is used as a delimiter to divide a string into an array. You can output different parts of an array using [array filters](/themes/liquid-documentation/filters/array-filters). + +

Input

+{% highlight liquid %}{% raw %} +{% assign words = "Hi, how are you today?" | split: ' ' %} + +{% for word in words %} +{{ word }} +{% endfor %} +{% endraw %}{% endhighlight %} + +

Output

+{% highlight text %} +Hi, +how +are +you +today? +{% endhighlight %} diff --git a/_filters/uniq.md b/_filters/uniq.md index 0f36115..7ce25a6 100644 --- a/_filters/uniq.md +++ b/_filters/uniq.md @@ -5,6 +5,14 @@ title: uniq

Removes any duplicate instances of an element in an array.

-| Input | Output | -|:-------------------------------------------|:-------| -| {% raw %}`{% assign fruits = "orange apple banana apple orange" %} {{ fruits | split: ' ' | uniq | join: ' ' }}`{% endraw %} | orange apple banana | +

Input

+
{% highlight html %}{% raw %} +{% assign fruits = "orange apple banana apple orange" %} +{{ fruits | split: ' ' | uniq | join: ' ' }} +{% endraw %}{% endhighlight %}
+ +

Output

+
{% highlight html%}{% raw %} +orange apple banana +{% endraw %}{% endhighlight %}
+ diff --git a/_layouts/default.html b/_layouts/default.html index 0570dc5..c644d60 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -29,7 +29,7 @@ @@ -40,11 +40,8 @@
-
-

{% unless page.url == "/index.html" %}{{ page.collection | capitalize }} → {% endunless %} {{ page.title }}

-
- {{ content }} -
+
+ {{ content }}
diff --git a/_layouts/page.html b/_layouts/page.html deleted file mode 100644 index 74c1a11..0000000 --- a/_layouts/page.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: default ---- -
- -
-

{{ page.title }}

-
- -
- {{ content }} -
- -
diff --git a/_layouts/post.html b/_layouts/post.html deleted file mode 100644 index 74c1a11..0000000 --- a/_layouts/post.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: default ---- -
- -
-

{{ page.title }}

-
- -
- {{ content }} -
- -
diff --git a/_posts/2015-01-26-test-post.markdown b/_posts/2015-01-26-test-post.markdown deleted file mode 100644 index 2a4d36b..0000000 --- a/_posts/2015-01-26-test-post.markdown +++ /dev/null @@ -1,34 +0,0 @@ ---- -layout: post -title: "Test Post" -date: 2015-01-26 17:50:59 -categories: liquid docs yo ---- - -# Heading 1 - -## Heading 2 - -### Heading 3 - -#### Heading 4 - -This is a dummy paragraph... find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -> Blockquote - -Code snippet: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help]. - -[jekyll]: http://jekyllrb.com -[jekyll-gh]: https://github.com/jekyll/jekyll -[jekyll-help]: https://github.com/jekyll/jekyll-help diff --git a/_sass/modules/_base.scss b/_sass/modules/_base.scss index 3ad9c88..e749242 100644 --- a/_sass/modules/_base.scss +++ b/_sass/modules/_base.scss @@ -82,12 +82,11 @@ a { } h1 { - font-size: 2em; + font-size: 2.5em; } h2 { font-size: 2em; - text-decoration: underline; } h3 { diff --git a/_sass/modules/_layout.scss b/_sass/modules/_layout.scss index b584c75..2107b75 100644 --- a/_sass/modules/_layout.scss +++ b/_sass/modules/_layout.scss @@ -12,7 +12,7 @@ $wrapper-width: 800px; width: 100%; } -.content__wrapper { +.content__list { max-width: $wrapper-width; margin: 0 auto; padding: 0 $spacing-unit; diff --git a/_sass/modules/_page-content.scss b/_sass/modules/_page-content.scss index 65b32b5..40918e1 100644 --- a/_sass/modules/_page-content.scss +++ b/_sass/modules/_page-content.scss @@ -8,3 +8,7 @@ td { p { line-height: 1.8; } + +.content__item { + margin-bottom: $spacing-unit * 2; +} diff --git a/filters/index.html b/filters/index.html new file mode 100644 index 0000000..a7141df --- /dev/null +++ b/filters/index.html @@ -0,0 +1,12 @@ +--- +layout: default +--- + +{% for doc in site.collections["filters"].docs %} +
+

{{ doc.title }}

+
+ {{ doc.content }} +
+
+{% endfor %} diff --git a/tags/index.html b/tags/index.html new file mode 100644 index 0000000..d0fdac2 --- /dev/null +++ b/tags/index.html @@ -0,0 +1,12 @@ +--- +layout: default +--- + +{% for doc in site.collections["tags"].docs %} +
+

{{ doc.title }}

+
+ {{ doc.content }} +
+
+{% endfor %}