mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-23 08:59:19 +02:00
Change back to display sequence only
This commit is contained in:
parent
bdd9b985aa
commit
bb54be4a4c
|
@ -10,7 +10,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
<th>名称</th>
|
<th>名称</th>
|
||||||
<th>序列或题库</th>
|
<th>序列</th>
|
||||||
<th>创建日期</th>
|
<th>创建日期</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{ range (where .Data.Pages "Section" "!=" "") }}
|
{{ range (where .Data.Pages "Section" "!=" "") }}
|
||||||
|
@ -19,11 +19,11 @@
|
||||||
<td><a href="{{ .URL }}">{{ .Title }}</a></td>
|
<td><a href="{{ .URL }}">{{ .Title }}</a></td>
|
||||||
<td>
|
<td>
|
||||||
{{ if fileExists (printf "static/seq/%s.json" .File) }}
|
{{ if fileExists (printf "static/seq/%s.json" .File) }}
|
||||||
<a href="{{ printf "/seq/%s.json" .File }}">{{ printf "%s.json" .File }}</a>
|
<a href="{{ printf "/seq/%s.json" .File }}" target="_blank">{{ printf "%s.json" .File }}</a>
|
||||||
{{ else if fileExists (printf "static/seq/%s.csv" .File) }}
|
{{ else if fileExists (printf "static/seq/%s.csv" .File) }}
|
||||||
<a href="{{ printf "/seq/%s.csv" .File }}">{{ printf "%s.csv" .File }}</a>
|
<a href="{{ printf "/seq/%s.csv" .File }}" target="_blank">{{ printf "%s.csv" .File }}</a>
|
||||||
{{ else if fileExists (printf "static/seq/%s" .File) }}
|
{{ else if fileExists (printf "static/seq/%s" .File) }}
|
||||||
<a href="{{ printf "/seq/%s/" .File }}">{{ printf "%s" .File }}</a>
|
<a href="{{ printf "/seq/%s/sequence.json" .File }}" target="_blank">{{ printf "%s.json" .File }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
暂无
|
暂无
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue