aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-markdown.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-11-14 08:37:26 -0500
committertdro <tdro@noreply.example.com>2022-11-14 08:37:26 -0500
commitdb3820c0c5d84226e01d6f1dcef10929979935ba (patch)
tree5ca4d33841e518e2db1ace4c0486e46b1b907136 /themes/default/layouts/partials/meta-markdown.html
parente8d6280abb4b7cdfc03bec80af6506399e5fdf51 (diff)
downloadcanory-db3820c0c5d84226e01d6f1dcef10929979935ba.tar.gz
canory-db3820c0c5d84226e01d6f1dcef10929979935ba.tar.bz2
canory-db3820c0c5d84226e01d6f1dcef10929979935ba.zip
themes/default/layouts/partials/meta: Remove dead logic
Feed data self and markdown may no longer be needed
Diffstat (limited to 'themes/default/layouts/partials/meta-markdown.html')
-rw-r--r--themes/default/layouts/partials/meta-markdown.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/themes/default/layouts/partials/meta-markdown.html b/themes/default/layouts/partials/meta-markdown.html
index ca8ff37..c6e7bdf 100644
--- a/themes/default/layouts/partials/meta-markdown.html
+++ b/themes/default/layouts/partials/meta-markdown.html
@@ -1,13 +1,8 @@
{{- if not .ExpiryDate -}}
- {{- $author := partial "function-authors-data.html" . -}}
- {{- $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.markdown -}}
- {{- $title = $href -}}
- {{- end -}}
+ {{- $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 }}">