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

Collections-based projects #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

GreatEmerald
Copy link
Contributor

The current system for projects is based on a JSON file in _data, which is quite cumbersome to maintain because for the most part it has duplicate data. You mostly want to write about your projects in the very same website you're on, and thus you'd have to copy the name, date, url, image, etc. information to the JSON file verbatim every time. That's not very efficient at all.

This pull request introduces projects based on collections: each project is its own page, and the projects page displays information about each of them by parsing the page metadata instead of the JSON file.

Generally I'd imagine that this approach would be much more useful than the JSON-based approach, and the changes needed are completely minimal (just apply the changes to _config.yml, change site.data.projects to site.projects everywhere, and change name to title in the layout), so it could replace the JSON-based system altogether. But it can live alongside it as well.

Also, so that the page looks useful (with more than one entry), the gh-pages branch should have some more project pages (based on the JSON entries, perhaps).

Only one word of difference from the JSON-based one: the main array is just `site.projects` now.
The main collection-based projects file, and again the only difference is the name of the main array.
This is sort of an extended .gitkeep file. Add more posts like that in the gh-pages branch.
A counterpart to projects.md.
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

Successfully merging this pull request may close these issues.

None yet

1 participant