blob: 9429355b0dd017183787e5cb2271d9827bd910e0 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{{- $id := partial "card-id.html" . -}}
{{- $href := print .Permalink -}}
{{- $plain := print $href "index.txt" -}}
<micro-metadata-menu>
<context-control>
<label for="context-metadata-{{ $id }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-down-circle.svg")) -}}
<span>menu</span>
</label>
<input hidden type="checkbox" id="context-metadata-{{ $id }}" />
<context-menu anchor>
{{- partial "meta-markdown.html" . -}}
<micro-metadata-plain>
<a href="{{ $plain }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/file-text.svg")) -}}
<span>Plaintext</span>
</a>
</micro-metadata-plain>
<micro-metadata-embed>
<a href="{{ print $href "embed.html" }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/code.svg")) -}}
<span>Embed</span>
</a>
</micro-metadata-embed>
{{- partial "meta-permalink.html" . -}}
<micro-metadata-datetime>
<a href="{{ $href }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}}
<time
data-type="localDate"
datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
>
{{ .Date | time.Format "Jan 2 2006" -}}
</time>
</a>
<a href="{{ $href }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/clock.svg")) -}}
<time
data-type="localTime"
datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
>
{{ .Date | time.Format "15:04 MST" -}}
</time>
</a>
</micro-metadata-datetime>
</context-menu>
</context-control>
</micro-metadata-menu>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|