aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-view.html
blob: 866cf82b3c34fc83f202e568415cf922c5879169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{- $author := partial "function-authors-data.html" . -}}
{{- $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. */ -}}