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
|
@ -6,7 +6,7 @@
|
||||||
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="postmeta">Posted on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
<div class="postmeta">Posted on <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
{{ if (isset .Params "categories") }}
|
{{ if (isset .Params "categories") }}
|
||||||
in
|
in
|
||||||
<span class="categories">
|
<span class="categories">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="postmeta">Posted on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
<div class="postmeta">Posted on <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
{{ if (isset .Params "categories") }}
|
{{ if (isset .Params "categories") }}
|
||||||
in
|
in
|
||||||
<span class="categories">
|
<span class="categories">
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
<li>
|
<li>
|
||||||
{{ if (not (isset .Params "externalurl")) }}
|
{{ if (not (isset .Params "externalurl")) }}
|
||||||
<a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a>
|
<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 }}
|
{{ else }}
|
||||||
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
|
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
|
||||||
on
|
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 }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<div class="postmeta">
|
<div class="postmeta">
|
||||||
{{ with .Params.location }}Photos taken in {{ . }} on {{ end }}
|
{{ with .Params.location }}Photos taken in {{ . }} on {{ end }}
|
||||||
<time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
{{ with .Params.camera }} with {{ . }}{{ end }}
|
{{ with .Params.camera }} with {{ . }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="postmeta">Posted on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time> in
|
<div class="postmeta">Posted on <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2, 2006" }}</time> in
|
||||||
<span class="categories">
|
<span class="categories">
|
||||||
{{ range $i, $v := .Params.categories }}
|
{{ range $i, $v := .Params.categories }}
|
||||||
<a class="category" href="/categories/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
|
<a class="category" href="/categories/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue