generated from ElnuDev/go-project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
588 B
21 lines
588 B
<p><i>{{ $count := (len .) }}{{ if eq $count 0 }}No results{{ else }}{{ $count }} result{{ if ne $count 1}}s{{ end }}{{ end }}.</i></p>
|
|
{{- range . -}}
|
|
<div class="box">
|
|
<h3>
|
|
{{- if .Kanji -}}
|
|
<ruby>{{- .Kanji -}}<rp>(</rp><rt>{{- .Reading -}}</rt><rp>)</rp></ruby>
|
|
{{- else -}}
|
|
{{- .Reading -}}
|
|
{{- end -}}
|
|
</h3>
|
|
{{ if le (len .Definitions) 2 -}}
|
|
<p>{{- index .Definitions 0 -}}</p>
|
|
{{- else -}}
|
|
<ol>
|
|
{{- range .Definitions }}
|
|
<li>{{- . -}}</li>
|
|
{{- end }}
|
|
</ol>
|
|
{{- end }}
|
|
</div>
|
|
{{ end -}} |