---
layout: page
title: Blog
text: Stay up to date with latest Padrino news.
---
{% capture current %}Blog{% endcapture %}

{% include header_navigation.html %}

{% if page.text %}
{% include headline.html %}
{% endif %}

{% if page.text == blank%}
<div class="container vertical-offset-top">
{% else %}
<div class="container">
{% endif %}
  <div class="row">
    <div class="col-lg-12 text-center">
      {% if page.text == blank %}
        <h1>{{ page.title}}</h1>
      {% endif %}
    </div>
  </div>
  {% for post in paginator.posts %}
  <div>
      <a href="{{ post.url | prepend: site.baseurl }}">
          <h2 class="post-title">
              {{ post.title }}
          </h2>
          {% if post.subtitle %}
          <h3 class="post-subtitle">
              {{ post.subtitle }}
          </h3>
          {% endif %}
      </a>
      <p class="post-meta">Posted by {{ post.author }} on {{ post.date | date: "%B %-d, %Y" }}</p>
  </div>
  <hr>
  {% endfor %}

  <!-- Pager -->
  {% if paginator.total_pages > 1 %}
    <div class="hierarchy">
      {% if paginator.previous_page %}
          <a class="label label-default pull-left hierarchy" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
      {% endif %}
      {% if paginator.next_page %}
          <a class="label label-default pull-right hierarchy" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
      {% endif %}
    </div>
  {% endif %}
</div>

