Skip to content

Commit

Permalink
Merge pull request #1 from CollectionBuilder/main
Browse files Browse the repository at this point in the history
latest CSV updates
  • Loading branch information
dcnb authored Jun 18, 2024
2 parents 74d5f2b + 85aa299 commit d67667f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ unless Gem.win_platform?
gem 'image_optim'
gem 'image_optim_pack'
end
gem 'csv'
gem 'jekyll'
gem 'mini_magick'
gem 'rake'
Expand Down
2 changes: 1 addition & 1 deletion _includes/feature/accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Bootstrap accordion feature, https://getbootstrap.com/docs/5.1/components/accordion/

e.g. --> {% include accordion.html title1="Example section" text1=example1 title2="Section two" text2=example2 title3="Section three" text3=example3 %}
e.g. --> {% include feature/accordion.html title1="Example section" text1=example1 title2="Section two" text2=example2 title3="Section three" text3=example3 %}

Options:
- "title1", "title2", "title3" = title for each section of accordion (max three)
Expand Down
4 changes: 2 additions & 2 deletions _layouts/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
layout: page
custom-foot: js/timeline-js.html
---
{%- assign field = site.data.theme.timeline-field | default: "date" -%}
{%- assign field = site.data.theme.timeline-field | default: page.timeline-field | default: "date" -%}
{% if site.data.theme.timeline-child-objects == true %}
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}
{% else %}
Expand All @@ -12,7 +12,7 @@
{%- assign items = items | where_exp: 'item','item[field]' -%}
{%- assign raw-dates = items | map: field | 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 uniqueYears = clean-years | remove: " " | replace: ";;",";" | split: ";" | uniq | sort -%}
{%- assign uniqueYears = clean-years | replace: ";;",";" | split: ";" | compact | uniq | sort -%}
{%- if site.data.theme.year-navigation -%}
{%- assign navYears = site.data.theme.year-navigation | split: ";" -%}
{%- elsif site.data.theme.year-nav-increment -%}
Expand Down

0 comments on commit d67667f

Please sign in to comment.