Add translation contributors to edition-3 page template too

This commit is contained in:
Philipp Oppermann
2022-12-18 11:52:49 +01:00
parent 264fd90abe
commit 2642fa80e8
2 changed files with 18 additions and 0 deletions

View File

@@ -653,6 +653,13 @@ main img {
color: #999999;
}
.translation_contributors {
display: block;
margin-top: 0.5rem;
font-size: 0.9rem;
opacity: 0.7;
}
.post-category {
margin-right: 0.5rem;
text-transform: uppercase;

View File

@@ -74,6 +74,17 @@
{%- endif -%}
<a href="https://github.com/{{user}}">@{{user}}</a>
{%- endfor %}.
{%- if page.extra.translation_contributors %}
<span class="translation_contributors">
{{ trans(key="translation_contributors", lang=lang) }} {% for user in page.extra.translation_contributors -%}
{%- if not loop.first -%}
{%- if loop.last %} {{ trans(key="word_separator", lang=lang) }} {% else %}, {% endif -%}
{%- endif -%}
<a href="https://github.com/{{user}}">@{{user}}</a>
{%- endfor %}.
</span>
{% endif -%}
</p>
{% endif -%}
</div>