aboutsummaryrefslogtreecommitdiff
path: root/cmd/sklad/search.tmpl
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-04-18 05:59:13 +0200
committerPřemysl Janouch <p@janouch.name>2019-04-18 05:59:13 +0200
commit6c6cec62988d5d9ca48d3a23843393ca613a567b (patch)
tree635e89fa59d08b958937530713d7610bac22b10b /cmd/sklad/search.tmpl
parentcbf867868125ab3ede0c7614c8cf3e405a14bf7d (diff)
downloadsklad-6c6cec62988d5d9ca48d3a23843393ca613a567b.tar.gz
sklad-6c6cec62988d5d9ca48d3a23843393ca613a567b.tar.xz
sklad-6c6cec62988d5d9ca48d3a23843393ca613a567b.zip
sklad: highlight matches in the search
Diffstat (limited to 'cmd/sklad/search.tmpl')
-rw-r--r--cmd/sklad/search.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sklad/search.tmpl b/cmd/sklad/search.tmpl
index 0c58bf9..b7a890e 100644
--- a/cmd/sklad/search.tmpl
+++ b/cmd/sklad/search.tmpl
@@ -9,7 +9,7 @@
<section>
<header>
<h3><a href="series?prefix={{ .Prefix }}">{{ .Prefix }}</a></h3>
- <p>{{ .Description }}
+ <p>{{ .Description | highlight $.Query }}
</header>
</section>
{{ else }}
@@ -28,7 +28,7 @@
</h3>
</header>
{{- if .Description }}
- <p>{{ .Description }}
+ <p>{{ .Description | highlight $.Query }}
{{- end }}
</section>
{{ else }}