better time format
This commit is contained in:
parent
ad8cbbf556
commit
b0a6a0d417
|
@ -18,9 +18,11 @@
|
||||||
<small>
|
<small>
|
||||||
<a class="u-url" href="">#</a>
|
<a class="u-url" href="">#</a>
|
||||||
Published:
|
Published:
|
||||||
<time class="dt-published" datetime="{{.Entry.PublishedAt}}">
|
{{ if .Entry.PublishedAt }}
|
||||||
{{.Entry.PublishedAt}}
|
<time class="dt-published" datetime="{{.Entry.PublishedAt.Format "2006-01-02T15:04:05" }}">
|
||||||
</time>
|
{{.Entry.PublishedAt.Format "2006-01-02" }}
|
||||||
|
</time>
|
||||||
|
{{ end }}
|
||||||
{{ if .Author.Name }}
|
{{ if .Author.Name }}
|
||||||
by
|
by
|
||||||
<a class="p-author h-card" href="{{.Author.FullUrl}}">
|
<a class="p-author h-card" href="{{.Author.FullUrl}}">
|
||||||
|
|
|
@ -16,7 +16,11 @@
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<small style="font-size: 0.75em;">
|
<small style="font-size: 0.75em;">
|
||||||
<time class="dt-published" datetime="{{ .PublishedAt }}">{{ .PublishedAt }}</time>
|
{{ if .PublishedAt }}
|
||||||
|
<time class="dt-published" datetime="{{.PublishedAt.Format "2006-01-02T15:04:05" }}">
|
||||||
|
{{.PublishedAt.Format "2006-01-02" }}
|
||||||
|
</time>
|
||||||
|
{{ end }}
|
||||||
</small>
|
</small>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
@ -16,7 +16,11 @@
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<small style="font-size: 0.75em;">
|
<small style="font-size: 0.75em;">
|
||||||
<time class="dt-published" datetime="{{ .PublishedAt }}">{{ .PublishedAt }}</time>
|
{{ if .PublishedAt }}
|
||||||
|
<time class="dt-published" datetime="{{.PublishedAt.Format "2006-01-02T15:04:05" }}">
|
||||||
|
{{.PublishedAt.Format "2006-01-02" }}
|
||||||
|
</time>
|
||||||
|
{{ end }}
|
||||||
</small>
|
</small>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
Loading…
Reference in New Issue