summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/assets.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/assets.html')
-rw-r--r--layouts/_partials/assets.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/_partials/assets.html b/layouts/_partials/assets.html
new file mode 100644
index 0000000..6930496
--- /dev/null
+++ b/layouts/_partials/assets.html
@@ -0,0 +1,12 @@
+{{- /*
+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 -}}