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!