aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/menu-markdown.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-03-08 14:01:03 -0500
committertdro <tdro@noreply.example.com>2024-03-08 14:01:03 -0500
commit1f7dadf19ecc3f7f8072eb7bb692584b8fbf529c (patch)
tree3225a1cff6a0e4176055d3477ac2cd0e57af4773 /themes/default/layouts/partials/menu-markdown.html
parent2d3101ff48daa18f990e36c63cc8729d2da45aa3 (diff)
downloadcanory-1f7dadf19ecc3f7f8072eb7bb692584b8fbf529c.tar.gz
canory-1f7dadf19ecc3f7f8072eb7bb692584b8fbf529c.tar.bz2
canory-1f7dadf19ecc3f7f8072eb7bb692584b8fbf529c.zip
themes/default/layouts/partials: Merge menu
Diffstat (limited to 'themes/default/layouts/partials/menu-markdown.html')
-rw-r--r--themes/default/layouts/partials/menu-markdown.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/menu-markdown.html b/themes/default/layouts/partials/menu-markdown.html
new file mode 100644
index 0000000..7098fa5
--- /dev/null
+++ b/themes/default/layouts/partials/menu-markdown.html
@@ -0,0 +1,13 @@
+{{- if not .ExpiryDate -}}
+ {{- $relURL := strings.TrimPrefix .Page.Site.BaseURL .Page.Permalink -}}
+ {{- $source := print (path.Dir $relURL) ".md" -}}
+ {{- $href := print .Site.BaseURL "/" (partial "function-paths.html").markdown $source -}}
+ {{- $title := .File.LogicalName -}}
+
+ <micro-metadata-source>
+ <a href="{{ $href }}" title="{{ $title }}">
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/square-letter-m.svg")) -}}
+ <span>Markdown</span>
+ </a>
+ </micro-metadata-source>
+{{- end -}}