vegan-prestwich/_includes/layouts/home.liquid
2022-11-27 23:45:57 +00:00

37 lines
971 B
Plaintext

---
layout: default
---
<div class="page">
<h1>
Vegan Prestwich
</h1>
{{ content }}
{% include "contribute.html" %}
<div class="row">
<div class="col">
<h3>Shops</h3>
{% include "filtered-places", show: collections.shops, detailed: false %}
</div>
<div class="col">
<h3>Restaurants</h3>
{% include "filtered-places", show: collections.restaurants, detailed: false %}
</div>
<div class="col">
<h3>Food Delivery / Takeaways</h3>
{% include "filtered-places", show: collections.deliveries, detailed: false %}
</div>
</div>
<p>
<strong>Recent updates:</strong>
{% assign recently_updated = collections.places | sort: "last_modified_at" | reverse | slice: 0, 10 %}
{% for place in recently_updated %}
<a href="{{ place.url }}">{{ place.data.name | escape }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</p>
</div>