mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add translation contributors to edition-3 page template too
This commit is contained in:
@@ -653,6 +653,13 @@ main img {
|
|||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.translation_contributors {
|
||||||
|
display: block;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
.post-category {
|
.post-category {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|||||||
@@ -74,6 +74,17 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
<a href="https://github.com/{{user}}">@{{user}}</a>
|
<a href="https://github.com/{{user}}">@{{user}}</a>
|
||||||
{%- endfor %}.
|
{%- 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>
|
</p>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user