浏览代码

Localize post date (#492)

Jan 3 年之前
父节点
当前提交
801208c664
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layouts/_default/single.html

+ 1 - 1
layouts/_default/single.html

@@ -48,7 +48,7 @@
         <div class="author-profile ml-auto align-self-lg-center">
           <img class="rounded-circle" src='{{ partial "helpers/get-author-image.html" . }}' alt="Author Image">
           <h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
-          <p>{{ .Page.Date.Format "January 2, 2006" }}</p>
+          <p>{{ .Page.Date | time.Format ":date_full" }}</p>
         </div>
 
         <div class="title">