3 ms·
Cool idea. Include an about page somewhere. Where do you pull the questions from? Also a random idea is that you allow people to save their entry directly in
by Evidlo 4y ago
Cool idea. Include an about page somewhere. Where do you pull the questions from?
Also a random idea is that you allow people to save their entry directly into a git repo, which feels a bit safer than browser storage. I think there's a way to do that from the web.
- kuehle 4y agoI guess an about page is a great idea, I'll create one that answers the questions here later. My setup for the questions is the following - I have a questions file with one question per line and a cron job that takes the top one, builds the static page by including it in the template and then appends the question in the end. That way I can always add more questions but if I run out of questions it would just start from the beginning. Do you have an idea on how to save to a git repo from a static page? I don't want to make it any more complicated than it needs to be.
- Evidlo 4y agoThere seem to be REST apis that are specific to Gitlab/Github like [0]. There's also isomorphic-git [1], which is git client implemented in Javascript. [0]: https://github.blog/changelog/2021-09-13-a-simpler-api-for-authoring-commits/ https://github.blog/changelog/2021-09-13-a-simpler-api-for-a... [1]: https://isomorphic-git.org/ https://isomorphic-git.org/