mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Show links to community translated posts
This commit is contained in:
@@ -102,6 +102,10 @@ main img {
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-translation {
|
||||||
|
margin-top: .3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.post-category {
|
.post-category {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|||||||
@@ -4,6 +4,14 @@
|
|||||||
<div class="post-summary">
|
<div class="post-summary">
|
||||||
{{ page.summary | safe}}
|
{{ page.summary | safe}}
|
||||||
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
||||||
|
|
||||||
|
{% set translations = page.translations | filter(attribute="lang", value=lang) %}
|
||||||
|
{% if translations %}
|
||||||
|
<div class="post-translation">
|
||||||
|
{% set post = translations.0 %}
|
||||||
|
<b>Community Translation: <a href="{{ post.permalink }}">{{ post.title }}</a></b>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro post_link %}
|
{% endmacro post_link %}
|
||||||
|
|||||||
Reference in New Issue
Block a user