diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-26 14:00:48 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-26 14:00:48 -0500 |
| commit | be4365f71e48ed8752fe1cb1fcb516280d2866a8 (patch) | |
| tree | 0c09d61f9993cd3e2f7138988e04269a3baa32d8 /layouts/_partials | |
| parent | 71fc39ec0d5c5ea5508e12a7bbbc1d09164802b7 (diff) | |
| download | samanthony.xyz-be4365f71e48ed8752fe1cb1fcb516280d2866a8.zip | |
add uni transcript to resume page
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 -}} |