Sha256: a2f462df4a08e80ffbfd5d15c8ea3834cbac41b69176c684d6d2156765a1af1b

Contents?: true

Size: 1.81 KB

Versions: 4

Compression:

Stored size: 1.81 KB

Contents

---
layout: default
---
<div class="home">
  {%- if page.title -%}
    <h1 class="page-heading py-3">{{ page.title }}</h1>
  {%- endif -%}

  {{ content }}


  {% if site.paginate %}
    {% assign posts = paginator.posts %}
  {% else %}
    {% assign posts = site.posts %}
  {% endif %}


  {%- if posts.size > 0 -%}
    {%- if page.list_title -%}
      <h2 class="post-list-heading">{{ page.list_title }}</h2>
    {%- endif -%}
    <ul class="post-list list-unstyled">
      {%- assign date_format = site.bootstrap.date_format | default: "%b %-d, %Y" -%}
      {%- for post in posts -%}
      <li class="mb-5">
        <span class="post-meta text-muted">{{ post.date | date: date_format }}</span>
        <h3>
          <a class="post-link text-decoration-none" href="{{ post.url | relative_url }}">
            {{ post.title | escape }}
          </a>
        </h3>
        {%- if site.excerpts.show -%}
          {%- if site.excerpts.auto_truncate -%}{{ post.excerpt | truncatewords: 32 }}{%- else -%}{{ post.excerpt }}{%- endif -%}
        {%- endif -%}
      </li>
      {%- endfor -%}
    </ul>

    {% if site.paginate %}
      <div class="pager">
        <ul class="pagination">
        {%- if paginator.previous_page %}
          <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
        {%- else %}
          <li><div class="pager-edge">•</div></li>
        {%- endif %}
          <li><div class="current-page">{{ paginator.page }}</div></li>
        {%- if paginator.next_page %}
          <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
        {%- else %}
          <li><div class="pager-edge">•</div></li>
        {%- endif %}
        </ul>
      </div>
    {%- endif %}

  {%- endif -%}

</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-bootstrap-theme-1.1.0 _layouts/home.html
jekyll-bootstrap-theme-1.0.0 _layouts/home.html
jekyll-bootstrap-theme-0.1.1 _layouts/home.html
jekyll-bootstrap-theme-0.1.0 _layouts/home.html