- Changed references in markup.md to update "data.html" to "data/" for clarity. - Updated metadata.md to correct the link to the general documentation. - Modified navbar.md to ensure stub values match the new permalink structure. - Adjusted tables.md to reflect the new permalink for the table visualization page. - Updated about.md to change the permalink from "/about.html" to "/about/" and revised content for clarity and impact. - Changed browse.md permalink from "/browse.html" to "/browse/" for consistency. - Added copyright.md page with copyright information and terms of use. - Updated data.md to change permalink from "/data.html" to "/data/" and added introductory content. - Created donate.md page to facilitate donations and acknowledge supporters. - Updated locations.md permalink from "/locations.html" to "/locations/" for consistency. - Changed map.md permalink from "/map.html" to "/map/" for uniformity. - Added erasure.md page discussing the historical context of Black queer Kansas Citians. - Updated out-there.md to correct the link to Lea Hopkins' interview. - Changed subjects.md permalink from "/subjects.html" to "/subjects/" for consistency. - Updated timeline.md permalink from "/timeline.html" to "/timeline/" for uniformity.
18 lines
829 B
JSON
18 lines
829 B
JSON
---
|
|
# find and count unique subjects
|
|
#
|
|
# Requires CB's array_count_uniq.rb plugin!
|
|
---
|
|
{%- if site.data.theme.locations-fields -%}
|
|
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}
|
|
{%- assign locations-fields = site.data.theme.locations-fields | split: ";" -%}
|
|
{%- assign places = "" -%}
|
|
{%- for c in locations-fields -%}
|
|
{% assign new = items | map: c | join: ";" %}
|
|
{% assign places = places | append: ";" | append: new %}
|
|
{%- endfor -%}
|
|
{%- assign uniqPlaces = places | downcase | split: ";" | array_count_uniq -%}
|
|
{ "locations": [
|
|
{% for s in uniqPlaces %}{ "location" : {{ s[0] | jsonify }}, "count" : {{ s[1] | jsonify }}, "link" : {{ s[0] | url_param_escape | prepend: '/browse/#' | absolute_url | jsonify }} }{% unless forloop.last %},
|
|
{% endunless %}{% endfor %}
|
|
]}{%- endif -%} |