Changing date format to YYYY-MM-dd for datetime attribute.
This commit is contained in:
parent
bcf4127174
commit
878c8fc421
5 changed files with 6 additions and 6 deletions
|
@ -9,11 +9,11 @@
|
|||
<li>
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
<a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2" }}</time>
|
||||
on <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2" }}</time>
|
||||
{{ else }}
|
||||
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
|
||||
on
|
||||
<a href="{{ .Permalink }}"> <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2" }}</time> </a>
|
||||
<a href="{{ .Permalink }}"> <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2" }}</time> </a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue