Change social page to show post media, change home squares border opacity and change social page styling.

This commit is contained in:
天クマ 2026-07-04 20:56:51 -03:00
commit cd0e5d2945
5 changed files with 84 additions and 11 deletions

View file

@ -13,19 +13,30 @@ title: Adrian Victor:Social
<h1 class="nomargin negativeMargin"><a class="textColored noDecoration" href="https://mstdn.social/@tenkuma">@tenkuma</a></h1>
<hr class="nomargin">
<img src="{{ '/static/images/profile.jpg' | url }}">
<hr class="nomargin">
</div>
</div>
{% include 'widgets/internetometer-aside.html' %}
</aside>
<main>
<p>{{ i18n[langKey].mastodonPageDescription }}</p>
<ul>
{% for post in mastodon.posts %}
<hr class="nomargin">
<div class="mastodonPost">
{{ post.content | safe }}
<p><a class="postLink" href="{{ post.source_url }}">{{ post.date }}</a></p>
<div class="mastodonPostContent">
{{ post.content | safe }}
{% if post.media %}
<div class="mastodonMediaBox">
<div>
{% for media in post.media %}
<a href="{{ media.image }}"><img class="mastodonMedia" src="{{ media.image }}" {% if media.alt %}alt="{{ media.alt }}"{% endif %}></a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
<p class="mastodonLink"><a class="postLink" href="{{ post.source_url }}">{{ post.date }}</a></p>
</div>
{% endfor %}
{% endfor %}
</ul>
</main>