Knowledgebase

Quick Start



				<html>
				<head>
					<title>{{page.name}}</title>
				</head>
				<body>

				<h1>Hi {{page.name}}</h1>

				<h2>Posts</h2>
				<ul id="products">
				  {% for post in posts %}
				    <li>
				      <h2>{{ post.title }}</h2>
				    </li>
				  {% endfor %}
				</ul>

				<h2>Sponsors</h2>
				<ul id="products">
				  {% for sponsor in sponsors %}
				    <li>
				      <h2>{{ sponsor.name }}</h2>
				      {{ sponsor.description }}
				    </li>
				  {% endfor %}
				</ul>

				<h2>Athletes</h2>
				<ul id="products">
				  {% for athlete in athletes %}
				    <li>
				      <h2>{{ athlete.first_name }} {{ athlete.last_name }}</h2>
				    </li>
				  {% endfor %}
				</ul>

				</body>
				</html>

				

Default Templates

{% include 'titan' %}

Liquid Variables

{{page.name}}
{{page.bio}}
{{page.subdomain}}
{{page.email}}
{{page.phone}}
{{page.image}}
{{page.bg_color}}
{{page.name}}

Liquid Filters

{{ "My String" | underscore }}
{{ "My String" | dasherize }}
{{ "Parker Moore" | upcase }}
{{ page.created_at | date: "%a, %b %d, %y" }}
{{ "March 14, 2016" | date: "%b %d, %y" }}
{{ "now" | date: "%Y-%m-%d %H:%M" }}
{{ 183.357 | floor }}
{{ "Have you read Ulysses?" | strip_html }}
{{ "Tetsuro Takara" | url_encode }}
{{ 16 | plus: 4 }}
{{ "these are my words" | strip_html | truncatewords: 3, "..." }}
{{ "these are my words" | truncate: 30 }}
http://shopify.github.io/liquid/
http://www.rubydoc.info/gems/liquid/2.2.2/Liquid/StandardFilters

Partials

{% include 'donate' %}

Liquid Tags

{% google_analytics_tag 'UA-XXXXX-X' %}
{% javascript_tag %}
alert('Hello Liquid!');
{% endjavascript_tag %}
{% tablerow product in collection.products %}
{{ product.title }}
{% endtablerow %}

7 Athletes have been using our Websites successfully.

Free 30 Day Trial