Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cb_page_gen feature / logic to support multiple metadata files #35

Open
2 tasks
evanwill opened this issue Jul 28, 2022 · 2 comments
Open
2 tasks

cb_page_gen feature / logic to support multiple metadata files #35

evanwill opened this issue Jul 28, 2022 · 2 comments

Comments

@evanwill
Copy link
Contributor

Can _config.yml metadata value support multiple metadata files?
metadata: items_2; items_3

  • In template site.data[site.metadata] would need to be replaced with something that would always combine the multiple csvs. Could be done using cb_helpers fairly easily, creating a new site variable to replace site.data[site.metadata] that is the combined arrays--but this couldn't be replicated in CB-GH, would probably involve some ugly liquid.
  • cb_page_gen default would have to combine the multiple csvs (easy).
@evanwill evanwill mentioned this issue Jul 28, 2022
@evanwill
Copy link
Contributor Author

see #34 use case

@evanwill evanwill changed the title cb_page_gen feature / logic cb_page_gen feature / logic to support multiple metadata files Sep 7, 2023
@evanwill
Copy link
Contributor Author

evanwill commented Sep 7, 2023

in template, possible liquid solution for combining the files:

{% assign metadata = site.metadata | split: ';' %}
{% for m in metadata %}
{% assign items = items | concat: site.data[m] %}
{% endfor %}

maehr added a commit to maehr/collectionbuilder-csv that referenced this issue Feb 26, 2024
* fix: better font support fix CollectionBuilder#27

* fix: add fonts

* fix: remove old font files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant