chore: cleanup webmentions

This commit is contained in:
Cory Dransfeldt 2024-01-06 08:17:05 -08:00
parent 1c797df244
commit e45bfe2e8d
No known key found for this signature in database
7 changed files with 31 additions and 38 deletions

View file

@ -3,7 +3,7 @@
{% tablericon "calendar-time" "Anticipated albums" %}
Anticipated albums
</h2>
<ul class="media__links">
<ul class="link__list">
{% for album in albumReleases %}
<li>
<strong>{{ album.date | readableDate }}: </strong>

View file

@ -3,7 +3,7 @@
{% tablericon "link" "Links" %}
Links
</h2>
<ul class="media__links">
<ul class="link__list">
{% for link in links limit: 5 %}
<li>
<a class="no-underline" href="{{link.url}}" title="{{link.title | escape}}">

View file

@ -8,16 +8,12 @@
{% if mentions[type].size > 0 %}
<h2>{{ title }}</h2>
<div class="interaction flex--centered">
<ul>
{% for mention in mentions[type] %}
<li>
<a href={{mention.url}}>
<div class="avatar__wrapper flex--centered">
{% image mention.author.photo, mention.author.name, 'avatar__wrapper-image' %}
</div>
</a>
</li>
{% endfor %}
</ul>
{% for mention in mentions[type] %}
<a href={{mention.url}}>
<div class="avatar__wrapper flex--centered">
{% image mention.author.photo, mention.author.name, 'avatar__wrapper-image' %}
</div>
</a>
{% endfor %}
</div>
{% endif %}

View file

@ -1,14 +1,12 @@
{% if mentions['link-to'].size > 0 %}
<h2>Links</h2>
<div class="interaction">
<ul>
{% for mention in mentions['link-to'] %}
<li>
<a href="{{ mention.url }}">
{{ mention.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
<ul class="link__list">
{% for mention in mentions['link-to'] %}
<li>
<a href="{{ mention.url }}">
{{ mention.name }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}