diff options
Diffstat (limited to 'layouts/_partials/asset-table.html')
| -rw-r--r-- | layouts/_partials/asset-table.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_partials/asset-table.html b/layouts/_partials/asset-table.html index df47501..edc0b01 100644 --- a/layouts/_partials/asset-table.html +++ b/layouts/_partials/asset-table.html @@ -22,8 +22,9 @@ the modification times of files when the repository is cloned. {{- range . }} <tr> <td> + {{- $dateFmt := "2006-01-02" -}} {{- with resources.Get (printf "%s.moddate" .Name) -}} - {{- chomp .Content | time | dateFormat "2006-01-02" -}} + {{- chomp .Content | time | dateFormat $dateFmt -}} {{- end -}} </td> <td><a href="{{ .RelPermalink }}">{{ path.Base .Name }}</a></td> |