blob: fcc52f8beae41ad704ab5c6a1d7f6475cbf74816 (
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
28
29
30
31
32
33
34
35
36
|
<div
class="relative bg-white border border-gray-100 shadow-sm mb-2 p-3 lg:p-4 text-gray-600">
{{ if eq .context.Section "news" }}
<date
class="text-sm block"
datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ .context.Date.Format "January 2, 2006" }}
</date>
{{ end }}
<h2 class="text-gray-900 text-xl">
<a href="{{ .context.RelPermalink }}" class="link text-steel-500 dim">
{{- if eq .context.Section "functions" -}}
{{ .context.LinkTitle }}
{{- else -}}
{{ .context.Title }}
{{- end -}}
</a>
</h2>
<div class="leading-snug tracking-normal mt-2">
{{ if .context.Params.description }}
{{ .context.Params.description | markdownify }}
{{ else }}
{{ .context.Summary }}
{{ end }}
<a
href="{{ .context.RelPermalink }}"
class="text-sm mt-2 block link text-steel-500 dim">
Read More »
</a>
</div>
</div>
|