diff options
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/asset-table.html | 3 | ||||
| -rw-r--r-- | layouts/_partials/assets.html | 12 |
2 files changed, 2 insertions, 13 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> diff --git a/layouts/_partials/assets.html b/layouts/_partials/assets.html deleted file mode 100644 index 8bb5d2a..0000000 --- a/layouts/_partials/assets.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- /* -Render a list of tables of assets. - -@context {dict} . Mapping from section titles to asset glob patterns. - -@examle: {{ partial "assets.html" (dict "Spreadsheets" "auto/*.ods") }} -*/}} - -{{- range $title, $pattern := . -}} - <h1>{{ strings.FirstUpper $title }}</h1> - {{ partial "asset-table.html" (resources.Match $pattern) }} -{{- end -}} |