aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-date-time.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-06 02:09:42 -0400
committertdro <tdro@noreply.example.com>2022-08-06 02:09:42 -0400
commitd9a29082d810f2954c29aea215ba5cbbaa361ac6 (patch)
tree7b903c56e2868204eb18ea85399cfbe30e56921c /themes/default/layouts/partials/meta-date-time.html
parentac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (diff)
downloadcanory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.gz
canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.bz2
canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.zip
themes/default/layouts/partials: Hack in card context menu
Diffstat (limited to 'themes/default/layouts/partials/meta-date-time.html')
-rw-r--r--themes/default/layouts/partials/meta-date-time.html27
1 files changed, 10 insertions, 17 deletions
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html
index f1e49d0..bf855d8 100644
--- a/themes/default/layouts/partials/meta-date-time.html
+++ b/themes/default/layouts/partials/meta-date-time.html
@@ -1,23 +1,16 @@
-<micro-metadata-datetime>
- {{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}}
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/calendar.svg")) -}}
+{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}}
- {{- with .Params.feed.self -}}
- <a href="{{ $.Site.BaseURL }}/{{ . }}">
- {{ else }}
- <a href="{{ .Site.BaseURL }}/{{ $author.user }}/messages/{{ path.Base .Permalink }}/#{{ partial "card-id.html" . }}">
- {{ end }}
- <time
- datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
- title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}
+<micro-metadata-datetime
+title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}
{{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday, January 2, 2006 at 15:04:05 MST" }}{{ end }}">
- {{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") -}}
- </time>
- {{ if .Lastmod.After .Date }}
- <span>(edited)</span>
- {{- end -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/calendar.svg")) -}}
+ <time datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}">
+ {{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") -}}
+ </time>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
- </a>
+ {{ if .Lastmod.After .Date }}
+ <span>(edited)</span>
+ {{- end -}}
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</micro-metadata-datetime>
{{- /* This comment removes trailing newlines and white spaces. */ -}}