diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-markdown.html')
-rw-r--r-- | themes/default/layouts/partials/meta-markdown.html | 13 |
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 }}"> |