Big patch merging crawling+indexing into one command, new json document structure
[phinde.git] / data / templates / search / hit.htm
1 {% set doc = hit._source %}
2 <li class="hit">
3  <span class="title">
4   <a href="{{doc.url}}">{{doc.htmlTitle|raw}}</a>
5   {% if doc.author.name %}
6   by
7   <em>
8    {% if doc.author.url %}
9    <a href="{{doc.author.url}}">{{doc.author.name}}</a>
10    {% else %}
11    {{doc.author.name}}
12    {% endif %}
13   </em>
14   {% endif %}
15  </span>
16  <br/><tt class="url" title="{{doc.extra.cleanUrl}}">{{ellipsis(doc.extra.cleanUrl, 60)}}</tt>
17  <span class="extract">
18   <br/>
19   {% if doc.status.modate %}
20   <span class="date">{{doc.extra.day|date("Y-m-d")}}</span>
21   {% endif %}
22   {{doc.htmlText|raw}}
23  </span>
24 </li>