diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-source.html')
-rw-r--r-- | themes/default/layouts/partials/meta-source.html | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/themes/default/layouts/partials/meta-source.html b/themes/default/layouts/partials/meta-source.html index a172726..94b3b01 100644 --- a/themes/default/layouts/partials/meta-source.html +++ b/themes/default/layouts/partials/meta-source.html @@ -1,14 +1,19 @@ -{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} -{{- $source := print $author.user "/messages/" .File.LogicalName -}} +{{- if not .ExpiryDate -}} + <micro-metadata-source> + {{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} + {{- $source := print $author.user "/messages/" .File.LogicalName -}} + {{- safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/code.svg")) -}} -<cite> -{{- with .Params.feed.raw -}} -<a title="{{ $.Site.BaseURL }}/{{ . }}" href="{{ $.Site.BaseURL }}/{{ . }}"> -{{- else -}} -<a - href="{{ .Site.BaseURL }}/{{ partial "function-paths-markdown.html" }}/{{ $source }}" - title="{{ .Site.BaseURL }}/{{ partial "function-paths-markdown.html" }}/{{ $source }}"> + <cite> + {{- with .Params.feed.raw -}} + <a title="{{ $.Site.BaseURL }}/{{ . }}" href="{{ $.Site.BaseURL }}/{{ . }}"> + {{- else -}} + <a + href="{{ .Site.BaseURL }}/{{ partial "function-paths-markdown.html" }}/{{ $source }}" + title="{{ .Site.BaseURL }}/{{ partial "function-paths-markdown.html" }}/{{ $source }}"> + {{- end -}} + raw + </a> + </cite> + </micro-metadata-source> {{- end -}} - raw -</a> -</cite> |