Add last modification time to list template

This commit is contained in:
Zhang Liang 2018-04-25 17:32:43 +08:00
parent 4dac97bd87
commit 3e7ccabe6d

View file

@ -12,6 +12,7 @@
<th>名称</th>
<th>序列</th>
<th>创建日期</th>
<th>最后修改日期</th>
</tr>
{{ range (where .Data.Pages "Section" "!=" "") }}
<tr>
@ -29,6 +30,7 @@
{{ end }}
</td>
<td>{{ .Date.Format "2006/01/02" }}</td>
<td>{{ .Lastmod.Format "2006/01/02" }}</td>
</tr>
{{ end }}
</table>