Hello guys!
Does anyone has a solution? I get “00:00” as time in the article. See example: https://wasim.blog/post/how-is-everyone-changing-world/
In the code, I’m using {{ .Date.Format “Jan 2, 2006 15:04” }} and there is no special mention to this in config file.
Hi @mrwullah – split your post into a new topic, and referenced the old one
@zwbetz Actually, I found the solution. Just did.
I see you just needed to convert the smart quotes to standard quotes, then this works:
{{ .Date.Format "Jan 2, 2006 15:04" }}
@zwbetz, I compared my codes with a blog that is working fine. In single.html file, I am using <time>{{ .Date.Format "2006-01-02 15:04" }}</time> then, on posts, I would use date: 2015-02-23T22:00:00.
<time>{{ .Date.Format "2006-01-02 15:04" }}</time>
date: 2015-02-23T22:00:00
Also see: