Updated all of the Beeware core team links to include their Mastodon link as well as updated how links were displayed so that it would only display the icon if a link was also provided. Changed discord icon from the comment icon to the actual discord icon
23 lines
826 B
HTML
23 lines
826 B
HTML
{% from "macros/translation.html" import transbag %}
|
|
|
|
{% macro render_blog_post(post, from_index=false) %}
|
|
|
|
{% set t_posted_by = transbag('translate', post.alt, 'posted_by') %}
|
|
{% set t_on = transbag('translate', post.alt, 'on') %}
|
|
|
|
{% if from_index %}
|
|
<h2><a href="{{ post|url(alt=post.alt) }}">{{ post.title }}</a></h2>
|
|
<p class="meta">
|
|
{{ t_posted_by }}
|
|
{% if this.mastodon_handle %}
|
|
<a href="https://mastodon.social/{{ this.mastodon_handle }}">{{ this.author or this.mastodon_handle }}</a>
|
|
{% elif this.twitter_handle %}
|
|
<a href="https://twitter.com/{{ this.twitter_handle }}">{{ this.author or this.twitter_handle }}</a>
|
|
{% else %}
|
|
{{ post.author }}
|
|
{% endif %}
|
|
{{ t_on }} {{ post.pub_date.strftime('%-d %B %Y') }}
|
|
</p>
|
|
{% endif %}
|
|
{{ post.body }}
|
|
{% endmacro %}
|