diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-10 18:48:06 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-10 18:48:06 -0500 |
| commit | f2cfee9a911be29d15847f698f6e3609dda8cd8d (patch) | |
| tree | 7237b7a88f7afed87248b28da097f58ab86fe8c6 /layouts/_partials/asset_table.html | |
| parent | 03d596db3dc1e90fcd63ac5f203326773de75e28 (diff) | |
| download | samanthony.xyz-f2cfee9a911be29d15847f698f6e3609dda8cd8d.zip | |
use path.Join rather than printf
Diffstat (limited to 'layouts/_partials/asset_table.html')
| -rw-r--r-- | layouts/_partials/asset_table.html | 5 |
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> |