Working dictionary links

This commit is contained in:
Elnu 2023-06-02 11:32:46 -07:00
parent bd58b7aecd
commit 25906df967
2 changed files with 43 additions and 27 deletions

View file

@ -12,9 +12,15 @@
{% for subline in line %}
<p>
{% for word in subline %}
{% if word.dictionary %}
<a href="{{ word.dictionary }}" target="_blank"{% if word.pos %} class="{{ word.pos }}"{% endif %}>
{% endif %}
{% for segment in word.text %}
<ruby>{{ segment.kanji }}<rp>(</rp><rt>{{ segment.furigana | safe }}</rt><rp>)</rp></ruby>
{% endfor %}
{% if word.dictionary %}
</a>
{% endif %}
{% endfor %}
</p>
{% endfor %}