mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Write a proper warning message for translated posts
This commit is contained in:
@@ -37,8 +37,10 @@
|
||||
|
||||
{% if page.lang != "en" %}
|
||||
<div class="warning">
|
||||
<b>Translated Content</b>
|
||||
This page was translated from english. TODO
|
||||
{% set translations = page.translations | filter(attribute="lang", value="en") %}
|
||||
{% 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>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user