aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-view.html
blob: a327f7825d18d58d922902c4ab6b58dda96f8b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}}
{{- $href   := print  .Site.BaseURL "/" $author.user "/messages/" (path.Base .Permalink) "/" -}}

{{- with .Params.feed.self -}}
  {{- $href = print $.Site.BaseURL "/" $.Params.feed.self -}}
{{- end -}}

<micro-metadata-view>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
  <a href="{{ $href }}">
    {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/external-link.svg")) -}}
    <span>view</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
  </a>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</micro-metadata-view>
{{- /* This comment removes trailing newlines and white spaces. */ -}}