diff options
author | tdro <tdro@noreply.example.com> | 2022-07-09 10:13:53 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-09 10:13:53 -0400 |
commit | 8e1256308c9c24fa45783a7c0be7ff74a33906ee (patch) | |
tree | b3c62a2f4eb6bfb0a0ac0c8e7563507a2677df6d /themes/default/layouts/partials/meta-date-time.html | |
parent | 2b0c90bcf35d2a68a4ac4aabec6e9c04fd6e234f (diff) | |
download | canory-8e1256308c9c24fa45783a7c0be7ff74a33906ee.tar.gz canory-8e1256308c9c24fa45783a7c0be7ff74a33906ee.tar.bz2 canory-8e1256308c9c24fa45783a7c0be7ff74a33906ee.zip |
themes/default/layouts/partials/card-meta: Add icons
Dry up and normalize white spaces.
Diffstat (limited to 'themes/default/layouts/partials/meta-date-time.html')
-rw-r--r-- | themes/default/layouts/partials/meta-date-time.html | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html index dba333f..6a29955 100644 --- a/themes/default/layouts/partials/meta-date-time.html +++ b/themes/default/layouts/partials/meta-date-time.html @@ -1,18 +1,23 @@ -{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} +<micro-metadata-datetime> + {{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} + {{- safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/calendar.svg")) -}} -{{- 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" }} -{{ 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") -}} - {{ if .Lastmod.After .Date }} - (edited) - {{- end -}} - </time> + {{- 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" }} + {{ 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") -}} + {{ if .Lastmod.After .Date }} + (edited) + {{- end -}} + </time> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + </a> +{{- /* This comment removes trailing newlines and white spaces. */ -}} +</micro-metadata-datetime> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</a> |