Make sure only the first line of the repository description is shown in search results

This commit is contained in:
Joseph Schorr 2017-05-03 15:40:11 -04:00
parent 21aff5ef9d
commit 25d8b6ec02

View file

@ -25,7 +25,7 @@
<a href="{{ result.href }}">{{ result.namespace.name }}/{{ result.name }}</a>
</h4>
<p class="description">
<span class="markdown-view" content="result.description"></span>
<span class="markdown-view" content="result.description" first-line-only="true"></span>
</p>
<p class="result-info-bar">
Last Modified: <span am-time-ago="result.last_modified * 1000"></span>