blob: e820b2448a80aab4ebc5fc6ba422dc87f1c25e96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{{- $href := or .Params.Feed.link .Permalink -}}
{{- $content := partial "function-content.html" . | safeHTML -}}
{{- $expired := and .ExpiryDate (ge now.Unix .ExpiryDate.Unix) -}}
<micro-card
id="{{ partial "card-id.html" . }}"
{{ if .Weight }}pinned{{ end }}
{{ if .Draft }}draft{{ end }}
{{ if .ExpiryDate }}data-expires{{ end }}
>
<a href="{{ $href }}"></a>
<header>
{{ partial "profile-picture.html" . }}
{{ partial "card-meta-header.html" . }}
</header>
<article aria-label="article">
{{- $content -}}
<micro-tags>
{{- partial "tags.html" (dict "Format" "page" "Context" .) -}}
</micro-tags>
</article>
</micro-card>
|