Commit graph

14 commits

Author SHA1 Message Date
Lilian Jónsdóttir d05c906949 it turns out the handler order determines the order on the page too
who knew??? 🤦
2024-01-27 19:00:53 -08:00
Lilian Jónsdóttir c1506cc4b1 use string builder
because why not
2024-01-27 16:52:18 -08:00
Lilian Jónsdóttir a8705c5df3 handle robots.txt 2024-01-27 16:28:03 -08:00
Lilian Jónsdóttir 1275ae6b7d sort handlers alphabetically 2024-01-27 16:27:13 -08:00
Lilian Jónsdóttir 95fac5c405 use less single letter variables 2024-01-27 16:26:46 -08:00
Lilian Jónsdóttir bedf6cb8e9 actual request logger middleware
instead of log calls in every handler
2024-01-24 23:42:40 -08:00
Lilian Jónsdóttir b3ceba5ca6 ensure homepage has generated time 2024-01-24 00:56:16 -08:00
Lilian Jónsdóttir 1e8c664807 load home template from the cache properly 2024-01-24 00:32:26 -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 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 b9c0bd863b proper template generation time if not in cache 2024-01-23 13:52:38 -08:00
Lilian Jónsdóttir 6b1205e4f3 I don't know why I discarded that when I could've used it 2024-01-23 13:52:38 -08:00
Lilian Jónsdóttir e17e186c1d refactor handlers
- repeat less
- lay framework for adding more pages
2024-01-22 22:12:19 -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