Replies: 2 comments 2 replies
-
I think thats a great idea but even better one would be to go one step further and transition into astro.js and store the data for each category in markdown files for easier editing experience. we can dinamicaly get the onclick from the name of the card in the md file The quicker we move to a framework the simpler it will be to transition. Further down the road it will be much harder cause of the complexity of components routes etc. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I saw some PR for this, did Buzzby changer her mind and not want it to be Json driven |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wrote a python script which converts the HTML cards to JSON. The card info for this project is in the data.json file in the repo. The cards can then be generated dynamically using Javascript. I tested it on localhost and it works perfectly. This would make it easier to add new cards to the encyclopedia, eliminating the need to repeatedly write HTML. Although if this site gets really big it would be better to make a proper database.
Beta Was this translation helpful? Give feedback.
All reactions