Skip to content

Commit

Permalink
Create testcoffin_catalogue.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hms12 authored Jul 31, 2023
1 parent bc1c94a commit c999814
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions testcoffin_catalogue.md
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 %}

0 comments on commit c999814

Please sign in to comment.