Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / hugo-clarity / layouts / partials / excerpt.html
blob: 1f0fcdd93c1f7521a95dcd89b921614343a2ea5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

<li class = 'post_item'>
  <div class = 'excerpt'>
    <div class = 'excerpt_header'>
      <h3 class = 'post_link'>
        <a href='{{ .Permalink }}'>{{ .Title  }}</a>
      </h3>
      {{ partial "post-meta.html" . }}
    </div>
    {{- with .Params.thumbnail }}
    <div class = 'excerpt_footer partition'>
      <div class = 'excerpt_thumbnail'>
      <img src = '{{ if (hasPrefix . "http") }}{{ . }}{{ else }}{{ absURL . }}{{ end }}'>
      </div>
      {{ else }}
      <div class = 'excerpt_footer'>
        {{- end }}
        <div>
          <p class = 'pale'>{{ .Summary | truncate 320 }}</p>
          <a href='{{ .Permalink }}' class='excerpt_more button'>Read More</a>
        </div>
      </div>
    </div>
  </li>