Sha256: eebbaa1526964445a0658d365fd6eb3c88150ed0acdf0e0643e8a22e3e575f3c

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

<div class="container">
    {% assign url = page.url | remove:'.html' | split: "/" %}

    {% assign path = url | pop %}

    {% capture parent_url %}
    {% for dir in path offset: 1 %}{{ dir | append: "/" }}{% endfor %}
    {% endcapture %}

    {% if path.size == 1 %}
    <a class="back" href="/">Home</a>
    {% else %}
    <a class="back" href="{{site.baseurl}}{{ parent_url | strip }}">« {{ path | last }}</a>
    {% endif %}
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
just-the-cards-0.2.6 _includes/back_url.html
just-the-cards-0.2.5 _includes/back_url.html
just-the-cards-0.2.4 _includes/back_url.html
just-the-cards-0.2.2 _includes/back_url.html
just-the-cards-0.2.1 _includes/back_url.html