Browse Source

Fix photo date

Track3 5 months ago
parent
commit
3d5eab610f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      layouts/photo/single.html

+ 2 - 2
layouts/photo/single.html

@@ -37,7 +37,7 @@
 					<a href="{{.RelPermalink}}" class="post-item tdln">
 						<span>上一篇:{{.Title}}</span>
 						<span class="dotted-line"></span>
-						<time class="dim">{{ .Date.Format "2006-01-02" }}</time>
+						<time class="dim">{{ dateFormat "2006-01-02" .Params.shot_date }}</time>
 					</a>
 				</li>
 				{{- end }}
@@ -46,7 +46,7 @@
 					<a href="{{.RelPermalink}}" class="post-item tdln">
 						<span>下一篇:{{.Title}}</span>
 						<span class="dotted-line"></span>
-						<time class="dim">{{ .Date.Format "2006-01-02" }}</time>
+						<time class="dim">{{ dateFormat "2006-01-02" .Params.shot_date }}</time>
 					</a>
 				</li>
 				{{- end }}