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 }}
|
||||
<article>
|
||||
<a href="{{.Permalink}}">{{.Title}}</a>
|
||||
— {{.Date.Format "2006-01-02"}}
|
||||
— {{.PublishDate.Format "2006-01-02"}}
|
||||
</article>
|
||||
{{ end }}
|
||||
</article>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<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}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<a href="{{ .Permalink }}">
|
||||
{{.Title}}
|
||||
</a>
|
||||
— {{ .Date.Format "2006-01-02" }}
|
||||
— {{ .PublishDate.Format "2006-01-02" }}
|
||||
{{ with .Params.categories }}
|
||||
{{ range . }}
|
||||
— <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
|
|
Loading…
Reference in New Issue