diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-view.html')
-rw-r--r-- | themes/default/layouts/partials/meta-view.html | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/meta-view.html b/themes/default/layouts/partials/meta-view.html index d76798d..a327f78 100644 --- a/themes/default/layouts/partials/meta-view.html +++ b/themes/default/layouts/partials/meta-view.html @@ -1,14 +1,13 @@ {{- $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 - {{ with .Params.feed.self -}} - href="{{ $.Site.BaseURL }}/{{ . }}" - {{ else }} - href="{{ .Site.BaseURL }}/{{ $author.user }}/messages/{{ path.Base .Permalink }}/#{{ partial "card-id.html" . }}" - {{ end }} - > + <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. */ -}} |