diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-date-time.html')
-rw-r--r-- | themes/default/layouts/partials/meta-date-time.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html new file mode 100644 index 0000000..2c73bc2 --- /dev/null +++ b/themes/default/layouts/partials/meta-date-time.html @@ -0,0 +1,13 @@ +{{- $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") -}} + +{{- with .Params.feedSelf -}} +<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 "Monday, January 2, 2006 at 15:04:05 MST" }}"> + {{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") }} + </time> +</a> |