mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Write a proper warning message for translated posts
This commit is contained in:
@@ -37,8 +37,10 @@
|
|||||||
|
|
||||||
{% if page.lang != "en" %}
|
{% if page.lang != "en" %}
|
||||||
<div class="warning">
|
<div class="warning">
|
||||||
<b>Translated Content</b>
|
{% set translations = page.translations | filter(attribute="lang", value="en") %}
|
||||||
This page was translated from english. TODO
|
{% set original = translations.0 %}
|
||||||
|
<b>Translated Content:</b>
|
||||||
|
This is a community translation of the <strong><a href="{{ original.permalink }}">{{ original.title }}</a></strong> post. It might be incomplete, outdated or contain errors. Please report any issues!
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user