Initial commit

This commit is contained in:
Nasir Anthony Montalvo
2025-11-13 14:48:58 -06:00
committed by GitHub
commit 526096840e
2349 changed files with 19464 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
---
# create collection description and stats
---
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}
{%- assign raw-dates = items | map: 'date' | compact | uniq -%}
{%- capture clean-years -%}{% for date in raw-dates %}{% if date contains "-" %}{{ date | strip | split: "-" | first }}{% elsif date contains "/" %}{{ date | strip | split: "/" | last }}{% else %}{{ date | strip }}{% endif %}{% unless forloop.last %};{% endunless %}{%- endfor -%}{%- endcapture -%}
{%- assign date-range = clean-years | remove: " " | split: ";" | uniq | sort -%}
{%- assign formats = items | map: 'format' -%}
{%- assign formats_uniq = formats | uniq -%}
{
"title": "{{ site.title }}",
"url": "{{ '/' | absolute_url }}",
"image": "{{ site.data.featured_item.src | relative_url }}",
"description": "{{ site.description }}",
"publisher": {
"name": "{{ site.organization-name }}",
"url": "{{ site.organization-link }}",
"logo": "{{ site.organization-logo-banner }}"
},
"date_start": "{{ date-range | first }}",
"date_end": "{{ date-range | last }}",
"objects": {
{% for f in formats_uniq %}{% assign count = formats | where_exp: 'i', 'i contains f' | size %}{{ f | jsonify }}: "{{ count }}"{% unless forloop.last %},{% endunless %}
{% endfor %}
},
"data": "{{ '/assets/data/datapackage.json' | absolute_url }}",
"last_build_date": "{{ site.time | date: '%Y-%m-%d' }}"
}