generated from inherentlee/11ty
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
---
|
|||
|
|
layout: base.njk
|
||
|
|
---
|
||
|
|
|
||
|
|
<article>
|
||
|
|
<h1>{{ title }}
|
||
|
|
{% if pronouns %}<span class="pronouns">{{ pronouns }}</span>{% endif %}
|
||
|
|
</h1>
|
||
|
|
|
||
|
|
<div class="post-metadata">
|
||
|
|
<p class="post-time">last updated <time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></p>
|
||
|
|
{% include "taglist.njk" %}
|
||
|
|
{% if location %}<p class="location">{{ location }}</p>
|
||
|
|
{% else %}<p class="online">digital-only</p>{% endif %}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{ content | safe }}
|
||
|
|
|
||
|
|
{% if contacts %}
|
||
|
|
<h2>contact information</h2>
|
||
|
|
<ul class="contacts">
|
||
|
|
{% for contact in contacts %}
|
||
|
|
<li>
|
||
|
|
{% if contact.href %}
|
||
|
|
<a href="{{ contact.href }}" target="_blank">{{ contact.title }}</a>
|
||
|
|
{% else %}
|
||
|
|
{{ contact.title }}
|
||
|
|
{% endif %}
|
||
|
|
</li>
|
||
|
|
{% endfor %}
|
||
|
|
</ul>
|
||
|
|
{% endif %}
|
||
|
|
</article>
|
||
|
|
|
||
|
|
<section class="related-providers">
|
||
|
|
{%- set relevantTags = tags | removeBasicTags %}
|
||
|
|
{%- set providerlist = collections.posts | filterByTags(relevantTags) | excludeFromCollection(page.url) | randomize | head(3) %}
|
||
|
|
{%- if providerlist.length %}
|
||
|
|
<h2>related providers</h2>
|
||
|
|
{% include "providerlist.njk" %}
|
||
|
|
{%- endif %}
|
||
|
|
</section>
|