blob: 4e4789817f074dc4630f431d52a119d3abc93b8d (
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
|
<micro-card {{ if .Weight }}pinned{{ end }} id="{{ partial "card-id.html" . }}">
{{ if .ExpiryDate }}<micro-expires>{{ end }}
<micro-summary {{ if .Draft }}draft{{ end }} title="{{- partial "title.html" . -}}">
<micro-thumbnail>
{{ partial "profile-picture.html" . }}
</micro-thumbnail>
<micro-content>
<micro-metadata>
{{ partial "card-meta.html" . }}
</micro-metadata>
{{ if .Params.unsafe }}
<micro-unsafe>
<details>
<summary>
{{ safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/alert-circle.svg")) }}
<span>Danger: Unsafe Content. <b><u>Click here</u></b> to show/hide</span>
</summary>
</details>
<micro-unsafe-content>
{{ end }}
{{-
.Content |
replaceRE "<p>\n<figure>" "<figure>" |
replaceRE "</figure></p>" "</figure>" |
safeHTML
-}}
{{ if .Params.unsafe }}
</micro-unsafe-content>
</micro-unsafe>
{{ end }}
<micro-tags>{{ partial "tags.html" . }}</micro-tags>
</micro-content>
</micro-summary>
{{ if .ExpiryDate }}</micro-expires>{{ end }}
</micro-card>
|