From 37b1fa3fbc495456aed81518621788d9a599be99 Mon Sep 17 00:00:00 2001 From: Zhang Liang Date: Mon, 2 Apr 2018 16:52:51 +0800 Subject: [PATCH] Refine list template to include item bank in the table --- layouts/_default/list.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7669df9..c19093f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@ ID 名称 - 序列 + 序列或题库 创建日期 {{ range (where .Data.Pages "Section" "!=" "") }} @@ -20,6 +20,8 @@ {{ if fileExists (printf "static/seq/%s.json" .File) }} {{ printf "%s.json" .File }} + {{ else if fileExists (printf "static/seq/%s.csv" .File) }} + {{ printf "%s.csv" .File }} {{ else }} 暂无 {{ end }}