vegan-prestwich/_includes/layouts/place.liquid

43 lines
1.2 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 %}
2025-01-08 22:56:33 +00:00
{%- capture absolute_url %}/{{image}}{% endcapture -%}
{%- assign folder_size = absolute_url.size | minus: 6 -%}
{%- capture absolute_folder %}{{ absolute_url | slice: 0, folder_size }}{% endcapture -%}
{%- capture filename %}{{ absolute_url | slice: 1, 999 }}{% endcapture -%}
{%- if absolute_folder == page.url -%}
2024-04-14 22:37:40 +00:00
<a href="{{ absolute_url }}">
2025-01-08 22:56:33 +00:00
{%- image filename, name, "150px" %}
2024-03-25 19:45:59 +00:00
</a>
2025-01-08 22:56:33 +00:00
{%- endif -%}
{%- endfor -%}
2022-11-27 23:45:57 +00:00
</div>
<p>
<small class="place-tags">
Tags:
2022-11-28 23:34:46 +00:00
{% capture sorted_tags %}{{ tags | sort | join: ", " }}{% endcapture %}
{{ sorted_tags | remove: ", places" | remove: "places, " | remove: "places" }}
2022-11-27 23:45:57 +00:00
</small>
</p>
</div>