aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/meta-source.html')
-rw-r--r--themes/default/layouts/partials/meta-source.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/meta-source.html b/themes/default/layouts/partials/meta-source.html
new file mode 100644
index 0000000..a2099e2
--- /dev/null
+++ b/themes/default/layouts/partials/meta-source.html
@@ -0,0 +1,12 @@
+{{- $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") -}}
+{{- $source := print $author.user "/messages/" .File.LogicalName -}}
+
+<cite>
+{{- with .Params.feedRaw -}}
+<a title="{{ $.Site.BaseURL }}/{{ . }}" href="{{ $.Site.BaseURL }}/{{ . }}">
+{{- else -}}
+<a title="{{ .Site.BaseURL }}/raw/{{ $source }}" href="{{ .Site.BaseURL }}/raw/{{ $source }}">
+{{- end -}}
+ raw
+</a>
+</cite>