vegan-prestwich/_includes/layouts/place.liquid

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-11-27 23:45:57 +00:00
---
layout: default
---
2022-11-28 04:33:45 +00:00
{% include "place-json-ld" %}
2022-11-27 23:45:57 +00:00
<h1>{{ name | escape }}</h1>
<div class="content">
{% include "place-meta.html" %}
{{ content }}
<p>
<small>
<strong>Last Updated:</strong> {{ last_modified_at | date: "%-d %B %Y" }}
</small>
</p>
<div class="place-images">
{% assign place_images = collections.place_images | reverse %}
{% for image in place_images %}
{% capture absolute_url %}/{{image}}{% endcapture %}
{% assign folder_size = absolute_url.size | minus: 6 %}
{% capture absolute_folder %}{{ absolute_url | slice: 0, folder_size }}{% endcapture %}
{% if absolute_folder == page.url %}
<a
href="{{absolute_url}}"
style="background-image: url('{{ absolute_url }}')"
title="{{ title }}"
></a>
{% endif %}
{% endfor %}
</div>
<p>
<small class="place-tags">
Tags:
{% assign tags = tags | sort | remove: "places" %}
{% for tag in tags %}{% unless forloop.first %}, {% endunless %}
{% assign tag_page = site.tags | where: "slug", tag | first %}
{% if tag_page %}<a href="{{ tag_page.url }}">{% endif %}{{ tag }}{% if tag_page %}</a>{% endif %}{% endfor %}
</small>
</p>
</div>