diff --git a/templates/index.html.tera b/templates/index.html.tera index 698106b..4363870 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -20,22 +20,21 @@ kyujitai = !kyujitai; } - + {% for line in content.japanese %} {% for subline in line %}
- {% for word in subline %} - {% if word.dictionary %} + {%- for word in subline -%} + {%- if word.dictionary -%} - {% endif %} - {% for segment in word.text %} - + {%- endif -%} + {% for segment in word.text -%} {{ segment.kanji }} - {% endfor %} - {% if word.dictionary %} + {%- endfor -%} + {%- if word.dictionary -%} - {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%}
{% endfor %} {% endfor %} @@ -50,11 +49,11 @@ {% else %} {{ content.translation.site.name }} {% endif %} - {% endif %} + {%- endif -%} - {% endif %} - {% if content.suggester %} + {%- endif -%} + {%- if content.suggester -%}This challenge was suggested by {{ content.suggester }} using the -h suggest
command.