Sha256: 4175cc82cb4c5c9c7d8106b5f9fc72443eee515be0fc289f8e48429aced7fff1

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

{% assign username = page.username %}
{% assign entries = site.posts | where: "username", username %}
{% assign person = site.data.centos.people | where: "username", username %}

{% if entries.size > 0 %}
{% for item in person %}
<div class="container">

  <div class="row text-center">
    <div class="col">
      {% if item.posts.section.icon %}<div class="display-6">{{ item.posts.section.icon }}</div>{% endif %}
      {% if item.posts.section.name %}<div class="display-6">{{ item.posts.section.name }}</div>{% endif %}
      {% if item.posts.section.preamble %}<p>{{ item.posts.section.preamble }}</p>{% endif %}
    </div>
  </div>

  <div class="row">
    <div class="col">
      <div class="list-group shadow mb-3">
        {% for i in entries limit:5 %}
        {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
        <a href="{{ i.link }}" class="list-group-item list-group-item-action">
          <div class="d-flex gap-2w-100 justify-content-between">
            <h5 class="mb-1 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>
    </div>
  </div>

</div>
{% endfor %}
{% endif %}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-theme-centos-2.2.0.pre.staging.1 _includes/people/posts.html
jekyll-theme-centos-2.2.0.pre.true.3 _includes/people/posts.html
jekyll-theme-centos-2.2.0.pre.true.2 _includes/people/posts.html
jekyll-theme-centos-2.2.0.pre.true.1.pre.alpha.9f29b18e _includes/people/posts.html
jekyll-theme-centos-2.1.0 _includes/people/posts.html