-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
layout: coffins | ||
title: TEST Catalogue of coffins | ||
description: "A catalogue of Egyptian coffins in the Fitzwilliam Museum" | ||
permalink: /test_coffin-catalogue | ||
id: catalogue | ||
category: catalogue | ||
--- | ||
{% assign rows = site.catalogue.size | divided_by: 2.0 | ceil %} | ||
{% for i in (1..rows) %} | ||
{% assign offset = forloop.index0 | times: 2 %} | ||
<div class="row"> | ||
{% assign sorted = site.catalogue | sort:"order" %} | ||
{% for catalogue in sorted limit:2 offset:offset %} | ||
<div class="col-md-6 mt-3"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<img class="align-self-center mr-3 rounded-circle float-right thumb-post" src="{{catalogue.image}}" | ||
alt="{{page.title}}'s image" height="150" width="150"> | ||
<h5 class="card-title">{{catalogue.title}}</h5> | ||
|
||
<p class="card-text"> | ||
{{ catalogue.content | strip_html | truncatewords: 20}} | ||
</p> | ||
|
||
<a href="{{ catalogue.url }}" class="btn btn-dark stretched-link">Read more </a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} |