-
Notifications
You must be signed in to change notification settings - Fork 97
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
Generate pages from an array of data #824
Comments
(sorry for the delay) My concern with this is how well we can design a system that is "good enough" for the most people rather than only really works for one person's use case. Jekyll has the advantage of a plugin system though I've been considering a plugin system for cobalt. So far I was only considering Liquid plugins. This would be a page-generating plugin (I wonder if this could be re-used for custom pagination). It could generate data for a page that maps to what an If we focus on just this, the plugin could
In the short term, a quick hack would be to have a quick and dirty script that
|
I'm trying to archive cards CCG, these cards have different editions and for each edition I have a .yaml file. Each edition can contain 100+ cards, and so in each .yaml file I have a big list of cards with name, description, costs and other data exclusive to that card.
I want each card to have its own page where it displays all of its information. eg. http://localhost/gen1edition/{{ card.name }}.
I'm trying to avoid having hundreds of .md files with the same variable names set between "---" and just manage the cards data from one big file (.yaml).
Jekyll doesn't do this natively but someone created a 3rd-party plugin for it. jekyll-datapage_gen
So for example if I have this yaml file
It should be able to generate 3 pages based on the name for example at
http://localhost/members/bob
,http://localhost/members/alice
andhttp://localhost/members/john
.And the layout used to display this, should be able to access data for each person, so in this case
hair_colour
can be used to display it in their page.The text was updated successfully, but these errors were encountered: