blob: 77a59c93489db50ddb235fea6d90e041412e7cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{{- if not .ExpiryDate -}}
{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}}
{{- $source := print $author.user "/messages/" .File.LogicalName -}}
{{- $href := print .Site.BaseURL "/" (partial "function-paths.html" "markdown") "/" $source -}}
{{- $title := $href -}}
{{- with .Params.feed -}}
{{- $href = print $.Site.BaseURL "/" $.Params.feed.raw -}}
{{- $title = $href -}}
{{- end -}}
<micro-metadata-source>
<a href="{{ $href }}" title="{{ $title }}">
{{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/code.svg")) -}}
<span>markdown</span>
</a>
</micro-metadata-source>
{{- end -}}
|