diff options
author | tdro <tdro@noreply.example.com> | 2022-08-16 02:01:07 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-16 02:01:07 -0400 |
commit | fb0eafd272a6cee9b8f9e380cd028f4edde18298 (patch) | |
tree | bcfea7c1cd10b4256cc5b2b062d68cbb0005db63 /themes/default/layouts/partials/meta-view.html | |
parent | 59024e55e1dea279b8acad3a9a8d2403c8bf3028 (diff) | |
download | canory-fb0eafd272a6cee9b8f9e380cd028f4edde18298.tar.gz canory-fb0eafd272a6cee9b8f9e380cd028f4edde18298.tar.bz2 canory-fb0eafd272a6cee9b8f9e380cd028f4edde18298.zip |
themes/default/layouts/partials: Add plain text
Add plain text version of single. Enhance menu permalink ergonomics. Add href to
date menu anchor.
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. */ -}} |