Commit graph

7 commits

Author SHA1 Message Date
Lilian Jónsdóttir 6fe2dcf3c8 make staticcheck happy 2024-02-09 00:25:40 -08:00
Lilian Jónsdóttir 3dbd5a86e2 major refactor of render
- split many parts of RenderTemplate into their own functions so they can be used individually
- move web apps into their own page, add projects page, both generated by executing links.tmpl
  with their own yaml data
- handle / specially, generating LinkMap from Handlers
2024-01-24 00:20:07 -08:00
Lilian Jónsdóttir 64b40c3d82 clean up models
move template data functions to their own package
2024-01-23 19:01:59 -08:00
Lilian Jónsdóttir dc51b06b51 it turns out cleanenv already does all that 2024-01-23 18:40:22 -08:00
Lilian Jónsdóttir 16397fce66 load template data from json, toml, or yaml
because why not, the required modules were already included as dependencies for other things
nothing new in go.mod, just indirect -> direct
2024-01-23 18:16:16 -08:00
Lilian Jónsdóttir 8a2319033e refactor how template data is handled + load template data from file
Generating template data is now handled by templatedata instead of handlers.
Renderer doesn't recieve any data, but now asks for data from templatedata.
Additionally, template data is loaded from file (too lazy to split that into its own commit).
Templates in ./templates/name.page.tmpl will have data loaded from ./templates/name.page.json
2024-01-23 16:10:15 -08:00
Lilian Jónsdóttir a7f6bb35e7 it works!
initial build that basically replicates my old HTML site
2024-01-22 20:10:14 -08:00