Sha256: 50bc1b5ee1e8e1674c8ff50a01969ae65102bdbb8ab980406e25b27caf4901b1

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

{% assign username = page.username %} {% assign entries = site.posts | where: "author", username %} {% assign limit = page.posts.section.limit %} {% if page.posts.section.visible == true %}
<div class="container pt-5 text-center">
  <div class="row">
    <div class="col">
      {% if page.posts.section.icon %}
      <i class="h1 {{ page.posts.section.icon }}"></i>
      {% endif %} {% if page.posts.section.name %}
      <h1>{{ page.posts.section.name }}</h1>
      {% endif %} {% if page.posts.section.preamble %}
      <p>{{ page.posts.section.preamble }}</p>
      {% endif %}
    </div>
  </div>

  <div class="row">
    <div class="col">
      {% if entries.size > 0 %}
      <div class="list-group shadow text-start">
        {% for i in entries limit: limit %} {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
        <a href="{{ site.baseurl }}{{ i.url }}" class="list-group-item list-group-item-action">
          <div class="d-flex gap-2w-100 justify-content-between">
            <h5 class="pt-0 mt-1 mb-1 fw-bold text-primary">{{ i.title }}</h5>
            <small class="text-muted">{{ i.date | date: date_format }}</small>
          </div>
          <p class="mb-1">{{ i.excerpt | strip_html | slice: 0,150 }}...</p>
        </a>
        {% endfor %}
      </div>
      {% else %}
      <div class="alert alert-light border shadow" role="alert">Nothing posted here, yet.</div>
      {% endif %}
    </div>
  </div>
</div>
{% endif %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-centos-2.7.0 _includes/people/posts.html
jekyll-theme-centos-2.6.0 _includes/people/posts.html