<div id="page" class="twelvecol">
<h1 class="title">{{blog.title}}</h1>
{% paginate blog.articles by 30 %}

<ul id="blog-articles" class="ninecol">
  {% for article in blog.articles  %}
    <li>
        <div id="article-body">
            <h2><a href="{{ article.url }}">{{ article.title }}</a></h2>
            <p>Posted: {{ article.published_at | date: "%b %d %Y" }}</p>
            {{ article.content }}
        </div>
    </li>
  {% endfor %}
</ul>

  <div id="sidebar" class="threecol last">
    <h3><a href="/blogs/news.atom" style="text-decoration: none"><i class="icon-rss"></i></a> Recent Articles</h3>
        <ul id="posts">
        {% for article in blog.articles  %}
        <li><a href="{{article.url}}">{{ article.title }}</a>
          <p>{{ article.published_at | date: "%b %d %Y" }}</p>
          <p>{{ article.content | strip_html | truncate: 140 }}</p>
        </li>
        {% endfor %} 
        <h3 style="margin-top: 20px">Categories</h3>
        {% for tag in blog.all_tags %}
        <li>
        <a href="{{ shop.url}}/blogs/{{ blog.handle }}/tagged/{{ tag | handleize }}">{{ tag }}</a>
        </li>
        {% endfor %}
        </ul>
    </div>
  
  
  <div class="clear"></div>
  

        <div id="bottom-paginate-bar" class="twelvecol">
                {% if paginate.pages > 1 %}
                <ul class="pagination">
                    {% if paginate.previous %}
                      <li class="arrow">{{ '&laquo;' | link_to: paginate.previous.url }}</li>
                    {% endif %}
                    {% for part in paginate.parts %}
                      {% if part.is_link %}
                        <li>{{ part.title | link_to: part.url }}</li>
                      {% else %}
                        {% if part.title == '&hellip;' %}
                        <li>{{ part.title }}</li>
                        {% else %}
                        <li class="current">{{ part.title | link_to: part.url }}</li>
                        {% endif %}
                      {% endif %}
                    {% endfor %}
                    {% if paginate.next %}
                      <li class="arrow">{{ '&raquo;' | link_to: paginate.next.url }}</li>
                    {% endif %}
                {% if collection.products_count > 32 %}
                    <li><a href="/collections/{{ collection.handle }}?view=all" style="margin-left: 10px">View All</a></li>
                {% endif %}
                </ul>
                {% endif %}         
        </div>

{% endpaginate %}
</div>


