summaryrefslogtreecommitdiffstats
path: root/layouts/_partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/asset_table.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_partials/asset_table.html b/layouts/_partials/asset_table.html
index 116b22d..461f3ce 100644
--- a/layouts/_partials/asset_table.html
+++ b/layouts/_partials/asset_table.html
@@ -17,11 +17,10 @@ modification times.
</tr>
</thead>
<tbody>
- {{ range . }}
- {{- $fpath := printf "assets/%s" .Name -}}
+ {{- range . }}
<tr>
<td>
- {{- with os.Stat $fpath -}}
+ {{- with os.Stat (path.Join "assets/" .Name) -}}
{{- .ModTime | time.Format "2006-01-02" -}}
{{- end -}}
</td>