File: index.liquid

package info (click to toggle)
ruby-liquid 5.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,176 kB
  • sloc: ruby: 10,561; makefile: 6
file content (47 lines) | stat: -rw-r--r-- 1,784 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div id="frontproducts"><div id="frontproducts-top"><div id="frontproducts-bottom">
<h2 style="display: none;">Featured Items</h2>
{% for product in collections.frontpage.products limit:1 offset:0 %}
  <div class="productmain">
   <a href="{{ product.url }}"><img src="{{ product.featured_image | product_img_url: 'small' }}" alt="{{ product.title | escape }}" /></a>
   <h3><a href="{{ product.url }}">{{ product.title }}</a></h3>
   <div class="description">{{ product.description | strip_html | truncatewords: 18 }}</div>
  <p class="money">{{ product.price_min | money }}</p>
  </div>
{% endfor %}
{% for product in collections.frontpage.products offset:1 %}
  <div class="product">
   <a href="{{ product.url }}"><img src="{{ product.featured_image | product_img_url: 'thumb' }}" alt="{{ product.title | escape }}" /></a>
   <h3><a href="{{ product.url }}">{{ product.title }}</a></h3>
     <p class="money">{{ product.price_min | money }}</p>
  </div>
{% endfor %}
</div></div></div>

<div id="mainarticle">
  {% assign article = pages.frontpage %}

  {% if article.content != "" %}
    <h2>{{ article.title }}</h2>
    <div class="article-body textile">
      {{ article.content }}
    </div>
  {% else %}
    <div class="article-body textile">
    In <em>Admin &gt; Blogs &amp; Pages</em>, create a page with the handle <strong><code>frontpage</code></strong> and it will show up here.<br />
    {{ "Learn more about handles" | link_to: "http://wiki.shopify.com/Handle" }}
    </div>
  {% endif %}

</div>
<br style="clear: both;" />
<div id="articles">
  {% for article in blogs.news.articles offset:1  %}
    <div class="article">
    <h2>{{ article.title }}</h2>
    <div class="article-body textile">
      {{ article.content }}
    </div>
  </div>
  {% endfor %}
</div>