<div class="pagetrail">
{% if paginator.page_trail %}
  {% for trail in paginator.page_trail %}
    <a
      href="{{ trail.path | prepend: site.baseurl }}"
      title="{{trail.title}}"
      {% if page.url == trail.path %}
      class="current_pagelink"
      {% endif %}
    >{{ trail.num }}</a>
  {% endfor %}
{% endif %}
</div>