aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/summary.html
blob: ae150d5dc0c607ffd9464b335481d128475e2446 (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
25
26
27
<div class="columns is-mobile">

  <div class="column is-5 has-text-centered">
    {{ partial "thumbnail-image.html" . }}
  </div>

  <div class="column is-7">
    <article>
      <header class="post-header">

      <h2 class="article__title title is-5 has-text-weight-bold">
        <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | markdownify }}</a>
      </h2>

      <p class="article__date subtitle is-6">
        {{ partial "page-date.html" . }}{{ partial "page-status.html" . }} &middot; {{ partial "read-time.html" . }}
      </p>

      </header>
      <p class="article__summary">{{ if .Params.summary }}{{ truncate 75 "..." .Params.summary }}{{ else }}{{ truncate 75 "..." .Summary}}{{ end }}</p>
      <p><a href='{{ .Permalink }}'>Continue reading ({{ .FuzzyWordCount }} words)</a></p>
    </article>
  </div>

</div>

<hr class="article__divider">