aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/card-id.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/card-id.html')
-rw-r--r--themes/default/layouts/partials/card-id.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/card-id.html b/themes/default/layouts/partials/card-id.html
new file mode 100644
index 0000000..b882d8b
--- /dev/null
+++ b/themes/default/layouts/partials/card-id.html
@@ -0,0 +1,7 @@
+{{- $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") -}}
+{{- $source := print $author.user "/messages/" .File.LogicalName -}}
+{{- $source = replace $source "/" "-" -}}
+{{ if .ExpiryDate }}
+ {{- $source = md5 $source -}}
+{{ end }}
+{{- $source -}}