mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-26 18:19:20 +02:00
Modify list template for better readability
This commit is contained in:
parent
6b05e21804
commit
bb3d1a1c64
|
@ -6,13 +6,29 @@
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
<ul>
|
<table class="sortable">
|
||||||
|
<tr>
|
||||||
|
<td>ID</td>
|
||||||
|
<td>名称</td>
|
||||||
|
<td>序列</td>
|
||||||
|
<td>创建日期</td>
|
||||||
|
<td>最后修改日期</td>
|
||||||
|
</tr>
|
||||||
{{ range (where .Data.Pages "Section" "!=" "") }}
|
{{ range (where .Data.Pages "Section" "!=" "") }}
|
||||||
<li>
|
<tr>
|
||||||
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
<td>{{ .Params.code }}</td>
|
||||||
<a href="{{ .URL }}">{{ .Title }}</a>
|
<td><a href="{{ .URL }}">{{ .Title }}</a></td>
|
||||||
</li>
|
<td>
|
||||||
|
{{ if fileExists (printf "content/post/%s.json" .File) }}
|
||||||
|
<a href="{{ printf "post/%s.json" .File }}">{{ printf "%s.json" .File }}</a>
|
||||||
|
{{ else }}
|
||||||
|
暂无
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</td>
|
||||||
|
<td>{{ .Date.Format "2006/01/02" }}</td>
|
||||||
|
<td>{{ .Lastmod.Format "2006/01/02" }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</table>
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
Loading…
Reference in New Issue