From 3e7ccabe6d3f66d8235a5bcd3123dd95d58dd464 Mon Sep 17 00:00:00 2001 From: Zhang Liang Date: Wed, 25 Apr 2018 17:32:43 +0800 Subject: [PATCH] Add last modification time to list template --- layouts/_default/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7e8a75d..949f076 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,6 +12,7 @@ 名称 序列 创建日期 + 最后修改日期 {{ range (where .Data.Pages "Section" "!=" "") }} @@ -29,6 +30,7 @@ {{ end }} {{ .Date.Format "2006/01/02" }} + {{ .Lastmod.Format "2006/01/02" }} {{ end }}