aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-date-time.html
blob: e254639346dd9b4316872b03cb834b5e100a51e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{- $author := index .Site.Data.authors ((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 "Monday, January 2, 2006 at 15:04:05 MST" }}">
    {{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") -}}
  </time>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</a>