layout: improve date displayed
Co-Authored-by: Igor Milhit <igor@milhit@.ch>pull/31/head
parent
02d6d2f086
commit
55dadc702c
|
@ -10,7 +10,7 @@
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<article>
|
<article>
|
||||||
<a href="{{.Permalink}}">{{.Title}}</a>
|
<a href="{{.Permalink}}">{{.Title}}</a>
|
||||||
— {{.Date.Format "2006-01-02"}}
|
— {{.PublishDate.Format "2006-01-02"}}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<item>
|
<item>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Content | html }}</description>
|
<description>{{ .Content | html }}</description>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
{{.Title}}
|
{{.Title}}
|
||||||
</a>
|
</a>
|
||||||
— {{ .Date.Format "2006-01-02" }}
|
— {{ .PublishDate.Format "2006-01-02" }}
|
||||||
{{ with .Params.categories }}
|
{{ with .Params.categories }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
— <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
— <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||||
|
|
Loading…
Reference in New Issue