744 B
744 B
| 1 | --- |
|---|---|
| 2 | # find all unique subjects used in the metadata |
| 3 | # |
| 4 | # Requires CB's array_count_uniq.rb plugin! |
| 5 | --- |
| 6 | {%- if site.data.theme.subjects-fields -%} |
| 7 | {%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%} |
| 8 | {%- for c in subjects-fields -%} |
| 9 | {%- endfor -%} |
| 10 | subject,count,link |
| 11 | {% endfor %} |
| 12 | {%- endif -%} |