Implement basic challenge rendering
This commit is contained in:
parent
1cf099845b
commit
bd58b7aecd
5 changed files with 598 additions and 11 deletions
|
@ -5,5 +5,36 @@
|
|||
</head>
|
||||
<body>
|
||||
<h1>Welcome to Tegaki Tuesday #{{ challenge }}!</h1>
|
||||
<a href="/{{ challenge - 1 }}">Previous</a>
|
||||
<a href="/{{ challenge + 1 }}">Next</a>
|
||||
<div lang="ja">
|
||||
{% for line in content.japanese %}
|
||||
{% for subline in line %}
|
||||
<p>
|
||||
{% for word in subline %}
|
||||
{% for segment in word.text %}
|
||||
<ruby>{{ segment.kanji }}<rp>(</rp><rt>{{ segment.furigana | safe }}</rt><rp>)</rp></ruby>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if content.translation %}
|
||||
<p>
|
||||
Translation
|
||||
{% if content.translation.author %}by {{ content.translation.author }}{% endif %}
|
||||
{% if content.translation.site %} via
|
||||
{% if content.translation.site.link %}
|
||||
<a href="{{ content.translation.site.link }}" target="_blank">{{ content.translation.site.name }}</a>
|
||||
{% else %}
|
||||
{{ content.translation.site.name }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if content.suggester %}
|
||||
<p><em>This challenge was suggested by <strong>{{ content.suggester }}</strong> using the <code>-h suggest</code> command.</code></em></p>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue