aboutsummaryrefslogtreecommitdiff
path: root/data/templates/search/hit.htm
blob: f61a27145bcb36b86919d49fa2520d29fda4929b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% set doc = hit._source %}
<li class="hit">
 <span class="title">
  <a href="{{doc.url}}">{{doc.htmlTitle|raw}}</a>
  {% if doc.author.name %}
  by
  <em>
   {% if doc.author.url %}
   <a href="{{doc.author.url}}">{{doc.author.name}}</a>
   {% else %}
   {{doc.author.name}}
   {% endif %}
  </em>
  {% endif %}
 </span>
 <br/><tt class="url" title="{{doc.extra.cleanUrl}}">{{ellipsis(doc.extra.cleanUrl, 60)}}</tt>
 <span class="extract">
  <br/>
  {% if doc.status.modate %}
  <span class="date">{{doc.extra.day|date("Y-m-d")}}</span>
  {% endif %}
  {{doc.htmlText|raw}}
 </span>
</li>