aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-markdown.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-06 02:09:42 -0400
committertdro <tdro@noreply.example.com>2022-08-06 02:09:42 -0400
commitd9a29082d810f2954c29aea215ba5cbbaa361ac6 (patch)
tree7b903c56e2868204eb18ea85399cfbe30e56921c /themes/default/layouts/partials/meta-markdown.html
parentac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (diff)
downloadcanory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.gz
canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.bz2
canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.zip
themes/default/layouts/partials: Hack in card context menu
Diffstat (limited to 'themes/default/layouts/partials/meta-markdown.html')
-rw-r--r--themes/default/layouts/partials/meta-markdown.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/meta-markdown.html b/themes/default/layouts/partials/meta-markdown.html
new file mode 100644
index 0000000..77a59c9
--- /dev/null
+++ b/themes/default/layouts/partials/meta-markdown.html
@@ -0,0 +1,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 -}}