Better part of speech display

This commit is contained in:
Elnu 2023-07-24 13:25:23 -07:00
parent 8421aca007
commit 33ecd1a539
4 changed files with 86 additions and 14 deletions

View file

@ -1,3 +1,3 @@
{{- define "definition" -}}
{{ if .PartOfSpeech }}<small><chip>{{ .PartOfSpeech }}</chip></small><br>{{ end }}{{ highlight .Definition -}}
{{ if .PartOfSpeech }}<small>{{ range .PartOfSpeech }}<chip class="{{ .Type }}">{{ .Description }}</chip> {{ end }}</small><br>{{ end }}{{ highlight .Definition -}}
{{ end }}