Continuing the discussion from Why is .PublishDate set to 0001-01-01 00:00:00 +0000 UTC?:
I read , but still i canโt handle this.
my layouts/_default/single.html:
{{ define "main" }}
<title>{{.Title}}</title>
<h1>{{.Title}}</h1>
<aside>
<p style="text-align: right;">
{{.Params.idx}}
{{ $categories := .Params.categories }}
{{ $all_categories := .Site.Taxonomies.categories }}
{{ with $categories }}
{{- range $all_categories -}}
{{ if in $categories .Page.Title }}
<a href="{{- .Page.Permalink -}}" style="color: black">{{ .Page.Title }}</a> 
{{ end }}
{{- end }}
</span>
{{ end }}
์์ฑ์ผ: {{ .PublishDate.Format "2006-01-02" }} <br>
์์ฑ์: {{$.Param "author"}} ์ฌ์ฅ
</p>
</aside>
{{ if and (gt .WordCount 1000 ) }}
<aside>
<b>๋ชฉ์ฐจ</b>
{{.TableOfContents}}
</aside>
{{ end }}
{{.Content}}
{{end}}
(.PublishDate.Format is in line 19)
hugo_issue.md:
---
title: "publishdate" # ๊ตญ๋ฌธ ํ์ดํ
slug: "hugo_issue"
publishdate: "2017-4-23T20:55:58-06:00"
author: "๋ฅ๋์"
categories: ["hugo_issue", ""]
tags: ["", ""]
weight: 600
idx: 1
aliases:
- issue
---
## sdf
asdf
Rendered:
I tried:
- command hugo server -D -F (Hugo Date vs PublishDate - Stack Overflow)
How can I get the correct publish date? Thanks!