mirror of
https://github.com/torproject/community.git
synced 2025-02-22 19:12:29 +00:00
Fix a bug where lektor doesn't translate certain things
Closes: #251 Lektor and the i18n plugin (apparently) don't translate certain `Markdown` objects in a single build. This left the slideshow descriptions untranslated. By directly using `this.description.source` we can force lektor to render the *translated* markdown as HTML.
This commit is contained in:
parent
1200f9aec2
commit
b059dba7b6
@ -23,14 +23,14 @@
|
||||
<div style="display: inline-block; vertical-align: top; width: 46%; float: left;"><img data-src="{{ this.image|url }}"></div>
|
||||
{% endif %}
|
||||
<div style="display: inline-block; width: 46%;">
|
||||
{{ this.description }}
|
||||
{{ md(this.description.source) }}
|
||||
</div>
|
||||
</section>
|
||||
{% elif this.slide_layout == "image_right" %}
|
||||
<section class="slide-image-right" {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} >
|
||||
<h2>{{ strip_p_tag(this.title) }}</h2>
|
||||
<div style="display: inline-block; width: 46%;">
|
||||
{{ this.description }}
|
||||
{{ md(this.description.source) }}
|
||||
</div>
|
||||
{% if this.image %}
|
||||
<div style="display: inline-block; vertical-align: top; width: 46%; float: right;"><img data-src="{{ this.image|url }}"></div>
|
||||
@ -39,7 +39,7 @@
|
||||
{% else %}
|
||||
<section {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} >
|
||||
<h2>{{ strip_p_tag(this.title) }}</h2>
|
||||
{{ this.description }}
|
||||
{{ md(this.description.source) }}
|
||||
{% if this.image %}
|
||||
<img data-src="{{ this.image|url }}">
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user