Sha256: 77b3212226d83d4b8aaf601fc891e7263f39ee60fdda88c88cdbad0f996a9ff4

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

---
layout: default
---
<div class="home">
  <h1 class="page-heading"></h1>

  <ul class="post-list">
  {% if paginator %}
    {% for post in paginator.posts %}
      <li>
        <span class="post-meta"><span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span></span>
        <h2><a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
        {{ post.content | strip_html | truncatewords: 35 }}
      </li>
    {% endfor %}
  {% else %}
    {% for post in site.posts %}
      <li>
        <span class="post-meta"><span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span></span>
        <h2><a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
        {{ post.content | strip_html | truncatewords: 35 }}
      </li>
    {% endfor %}
  {% endif %}
  </ul>

  <nav class="pagination">
    {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | absolute_url }}" class="pagination--pager" title="{{ page.previous.title }}">قبلی </a>
    {% else %}
    <a href="#" class="pagination--pager disabled"">قبلی </a>
    {% endif %}

    {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | absolute_url }}" class="pagination--pager" title="{{ page.next.title }}">بعدی</a>
    {% else %}
    <a href="#" class="pagination--pager disabled"">بعدی</a>
    {% endif %}
  </nav>

</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-mehdix-rtl-0.2.1 _layouts/home.html
jekyll-theme-mehdix-rtl-0.2.0 _layouts/home.html