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/_shortcodes/asset-table.html | |
| parent | 71fc39ec0d5c5ea5508e12a7bbbc1d09164802b7 (diff) | |
| download | samanthony.xyz-be4365f71e48ed8752fe1cb1fcb516280d2866a8.zip | |
add uni transcript to resume page
Diffstat (limited to 'layouts/_shortcodes/asset-table.html')
| -rw-r--r-- | layouts/_shortcodes/asset-table.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/_shortcodes/asset-table.html b/layouts/_shortcodes/asset-table.html new file mode 100644 index 0000000..82849fd --- /dev/null +++ b/layouts/_shortcodes/asset-table.html @@ -0,0 +1,12 @@ +{{- $patterns := slice -}} +{{- range split (.Get "patterns") "," }} + {{- $pattern := strings.TrimSpace . -}} + {{- $patterns = $patterns | append $pattern -}} +{{- end -}} + +{{- $assets := slice -}} +{{- range $patterns }} + {{- $assets = union $assets (resources.Match .) -}} +{{- end -}} + +{{ partial "asset-table.html" $assets }} |