Fix a reference link problem

This commit is contained in:
Zhang Liang 2018-03-04 19:58:54 +08:00
parent bb3d1a1c64
commit 3eb61b595b

View File

@ -20,7 +20,7 @@
<td><a href="{{ .URL }}">{{ .Title }}</a></td>
<td>
{{ if fileExists (printf "content/post/%s.json" .File) }}
<a href="{{ printf "post/%s.json" .File }}">{{ printf "%s.json" .File }}</a>
<a href="{{ printf "/post/%s.json" .File }}">{{ printf "%s.json" .File }}</a>
{{ else }}
暂无
{{ end }}