bombsimon / det-blev-ingen-cd.com

💿 Source code for the web site
https://det-blev-ingen-cd.com
14 stars 3 forks source link

[SUGGESTION] Buildable through SSG? #16

Open karlmacklin opened 4 years ago

karlmacklin commented 4 years ago

I think it would be useful if this was more buildable. Using a static site generator would make a lot of sense.

That way, you can better handle possible future expansion, by having a base layout template and feeding more content focused units of code through that. Sustainable code is good code.

Of course you'd have to find some way to handle that with the new direction of using Elm, but I think it should be possible to combine the two approaches in some way.

bombsimon commented 4 years ago

Hmm, maybe I don't understand the meaning of "static" in SSG but my thought was that it wasn't dynamic in the sens of a server of some kind manipulating the data. That is, no database, no server side code etcetera. So even though the site is bult with Elm I wouldn't say it was dynamic in any way since the JavaScript can be loaded client side. I don't feel ditching the JavaScript and having to reload the page to change language is a good way forward. Please enlighten me about the parts I might've missed about SSG!

Regarding future expansions, I don't think there will be any but that doesn't forbid you to create a template.

I don't have any problem moving away from Elm, we can leave it as a separate branch (just like the javascript branch). Feel free to chose a preferred generator from StaticGen and create a PR!