Sha256: af70544ed66cfdf06e31e66f7ab46ffbfc5edea6cfbbab3a77ff119ad99d3209

Contents?: true

Size: 686 Bytes

Versions: 6

Compression:

Stored size: 686 Bytes

Contents

{%- assign p = page[include.p] -%}
<div class="paginator">
  {%- if include.p == 'next' -%}
    {%- assign align = 'pull-left' -%}
    {%- assign arrow = 'before' -%}
    {%- assign indicator = 'Newer' -%}
  {%- else -%}
    {%- assign align = 'pull-right' -%}
    {%- assign arrow = 'next' -%}
    {%- assign indicator = 'Older' -%}
  {%- endif -%}
  {%- if p %}
  <div class="{{ align }}">
    <span>{{ indicator }}</span>
    <span class="material-icons">navigate_{{ arrow }}</span>
  </div>
  <a href="{{ p.url }}">
    <img src="{{ p.image }}" width="100%" alt="{{ p.title }}" />
    {{ p.title }}
  </a>
  {%- else %}
  <div class="{{ align }}">&nbsp;</div>
  {% endif -%}
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
askclass-news-theme-0.6.0 _includes/post/nextprev.html
askclass-news-theme-0.5.0 _includes/post/nextprev.html
askclass-news-theme-0.4.3 _includes/post/nextprev.html
askclass-news-theme-0.4.2 _includes/post/nextprev.html
askclass-news-theme-0.4.1 _includes/post/nextprev.html
askclass-news-theme-0.4.0 _includes/post/nextprev.html