layout | title | category |
---|---|---|
default |
Discover stories from the exhibition |
peacock |
{% assign rows = site.discover.size | divided_by: 2.0 | ceil %} {% for i in (1..rows) %} {% assign offset = forloop.index0 | times: 2 %}
{% assign sorted = site.discover | sort:"order" %}
{% for author in sorted limit:2 offset:offset %}
{% endfor %}
{% endfor %}
<div class="container h-100">
<!-- start image block -->
<div class="cover-image ">
<img class="align-self-center ml-1 mr-3 rounded-circle float-right thumb-post" src="{{ site.baseurl }}/images/discover/{{ author.thumbnail }}"
alt="{{page.title}}'s profile image" height="150" width="150" loading="lazy">
</div>
<!-- end image block -->
<div class="contents-label mb-3">
<h3>
<a href="{{ site.baseurl }}{{ author.url }}">{{ author.title }}</a>
</h3>
<p class="card-text">{{ author.content | strip_html | truncatewords: 20}}</p>
</div>
</div>
<a href="{{ site.baseurl }}{{ author.url }}" class="btn btn-dark">Read more</a>