vegan-prestwich/_includes/filtered-place.liquid

25 lines
1,010 B
Plaintext
Raw Permalink Normal View History

2022-11-25 00:54:51 +00:00
<li>
<a href="{{ place.url }}">{{ place.data.name | escape }}</a>
{% if detailed %}
{% if place.data.address %}
<span class="places-list__address">
{{ place.data.address }}, {{ place.data.postcode }}
</span>
{% endif %}
<p class="places-list__contact">
{% if place.data.phone %}
<a href="tel:{{ place.data.phone | replace: ' ', '' }}">{{ place.data.phone }}</a>
{% endif %}
{% if place.data.web %}
<a href="{{ place.data.web }}">
{{ place.data.web | replace: "https://", "" | replace: "http://", "" | replace: "www.", "" | escape }}
</a>
{% endif %}
</p>
<p class="places-list__tags">
2022-11-28 23:34:46 +00:00
{% capture sorted_tags %}{{ place.data.tags | sort | join: ", " }}{% endcapture %}
{{ sorted_tags | remove: ", places" | remove: "places, " | remove: "places" }}
2022-11-25 00:54:51 +00:00
</p>
{% endif %}
</li>