mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 18:30:40 -07:00
Removed Objects section
This commit is contained in:
@@ -6,8 +6,6 @@ permalink: /:year/:month/:day/:basename:output_ext
|
|||||||
collections:
|
collections:
|
||||||
filters:
|
filters:
|
||||||
output: true
|
output: true
|
||||||
objects:
|
|
||||||
output: true
|
|
||||||
tags:
|
tags:
|
||||||
output: true
|
output: true
|
||||||
exclude:
|
exclude:
|
||||||
@@ -22,12 +20,6 @@ defaults:
|
|||||||
type: "filters"
|
type: "filters"
|
||||||
values:
|
values:
|
||||||
layout: "default"
|
layout: "default"
|
||||||
-
|
|
||||||
scope:
|
|
||||||
path: ""
|
|
||||||
type: "objects"
|
|
||||||
values:
|
|
||||||
layout: "default"
|
|
||||||
-
|
-
|
||||||
scope:
|
scope:
|
||||||
path: ""
|
path: ""
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
title: join
|
|
||||||
---
|
|
||||||
|
|
||||||
`join` joins the elements of an array, using the character you provide.
|
|
||||||
|
|
||||||
| Code | Output |
|
|
||||||
|-------------------------------------------------------:|:-------------------|
|
|
||||||
| {% raw %}`{{ product.tags | join: ', ' }}`{% endraw %} | `"sale, mens, womens, awesome` |
|
|
||||||
|
|
||||||
In the sample above, assume that `product.tags` resolves to: `["sale", "mens", "womens", "awesome"]`.
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
title: last
|
|
||||||
---
|
|
||||||
|
|
||||||
Return the last element of an array.
|
|
||||||
|
|
||||||
| Code | Output |
|
|
||||||
|-------------------------------------------------------:|:-------------------|
|
|
||||||
| {% raw %}`{{ product.tags | last }}`{% endraw %} | `"awesome"` |
|
|
||||||
|
|
||||||
In the sample above, assume that `product.tags` resolves to: `["sale", "mens", "womens", "awesome"]`.
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
title: lstrip
|
|
||||||
---
|
|
||||||
|
|
||||||
Strips all whitespace (tabs, spaces, and newlines) from the left side of a string.
|
|
||||||
|
|
||||||
| Code | Output |
|
|
||||||
|-------------------------------------------------------:|:-------------------|
|
|
||||||
| {% raw %}`{{ ' too many spaces ' | lstrip }}`{% endraw %} | `"too many spaces "` |
|
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
.btn-row {
|
.btn-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
.btn:not(:first-child) {
|
.btn:not(:first-child) {
|
||||||
margin-left: $spacing-unit / 2;
|
margin-left: $spacing-unit / 2;
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
.home--banner {
|
.home--banner {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
border-bottom: 1px solid lighten($color-slate, 50%);
|
||||||
|
padding-bottom: $spacing-unit;
|
||||||
|
margin-bottom: $spacing-unit;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
+2
-4
@@ -8,13 +8,11 @@ layout: default
|
|||||||
<h1>Liquid</h1>
|
<h1>Liquid</h1>
|
||||||
<p>Ruby library for rendering safe templates which cannot affect the security of the server they are rendered on.</p>
|
<p>Ruby library for rendering safe templates which cannot affect the security of the server they are rendered on.</p>
|
||||||
<p class="btn-row">
|
<p class="btn-row">
|
||||||
<a class="btn"><i class="icon fa fa-2x fa-arrow-circle-down"></i>Download</a>
|
<a href="https://github.com/Shopify/liquid/archive/master.zip" target="_blank" class="btn"><i class="icon fa fa-2x fa-arrow-circle-down"></i>Download</a>
|
||||||
<a class="btn"><i class="icon fa fa-2x fa-github"></i>View on Github</a>
|
<a href="https://github.com/Shopify/liquid" target="_blank" class="btn"><i class="icon fa fa-2x fa-github"></i>View on Github</a>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<hr/>
|
|
||||||
|
|
||||||
<p>Liquid is an extraction from the e-commerce system Shopify. Shopify powers many thousands of e-commerce stores which all call for unique designs. For this we developed Liquid which allows our customers complete design freedom while maintaining the integrity of our servers.</p>
|
<p>Liquid is an extraction from the e-commerce system Shopify. Shopify powers many thousands of e-commerce stores which all call for unique designs. For this we developed Liquid which allows our customers complete design freedom while maintaining the integrity of our servers.</p>
|
||||||
|
|
||||||
<p>Liquid has been in production use since June 2006 and is now used by many other hosted web applications.</p>
|
<p>Liquid has been in production use since June 2006 and is now used by many other hosted web applications.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user