aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/list/default.html
blob: f1eef3dce9bd6c4a9fb546d209f53aeb73ff1f02 (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
26

<article class="flex flex-col gap-1">
  <h1>
    <a href="{{ .Permalink }}">{{ .Title }}</a>
  </h1>

  <span class="date">
    <time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'>
      {{ .PublishDate.Format "02/01/2006" }}
    </time>
  </span>

  {{ if and .Params.description (ne .Params.description "") }}
    <div class="description">
      {{ .Params.description }}
    </div>
  {{ end }}

  <div class="mt-2">
    <a class="read-more" href="{{ .Permalink }}">
      Read more
      <span class="w-4 h-4 stroke-2">
        {{ partial "utils/icon" "arrow-right" }}
      </span>
    </a>
  </div>
</article>