mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-28 07:43:33 +02:00
Refine list template to include item bank in the table
This commit is contained in:
parent
35fda67181
commit
37b1fa3fbc
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
<tr>
|
||||
<th>ID</th>
|
||||
<th>名称</th>
|
||||
<th>序列</th>
|
||||
<th>序列或题库</th>
|
||||
<th>创建日期</th>
|
||||
</tr>
|
||||
{{ range (where .Data.Pages "Section" "!=" "") }}
|
||||
|
@ -20,6 +20,8 @@
|
|||
<td>
|
||||
{{ if fileExists (printf "static/seq/%s.json" .File) }}
|
||||
<a href="{{ printf "/seq/%s.json" .File }}">{{ printf "%s.json" .File }}</a>
|
||||
{{ else if fileExists (printf "static/seq/%s.csv" .File) }}
|
||||
<a href="{{ printf "/seq/%s.csv" .File }}">{{ printf "%s.csv" .File }}</a>
|
||||
{{ else }}
|
||||
暂无
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue