HalosGhost / halosgho.st

The repo backing my homepage
GNU General Public License v3.0
3 stars 0 forks source link

Instead of serving the homepage dynamically… maybe… like… don't… #16

Closed HalosGhost closed 5 years ago

HalosGhost commented 5 years ago

You know what's crazy? /index is entirely dynamic content; loaded as a template and populated on every page load. You know why? because it lets us have an always-up-to-date copyright notice year.

This was, initially, a proof-of-concept for working with lwan templates. Practically speaking, though, it is totally unnecessary. As I am planning on moving away from dynamic content in favor of stagit (cf. #9), even this piece is not necessary..

So, current plan:

  1. remold /index to be static content
  2. add a new route (preliminarily, /footer) that will return the full footer content (possibly as a lwan template; undecided)
  3. add an iframe on /index for the footer content so it loads dynamically, but the page itself is static

This should accomplish a few things:

HalosGhost commented 5 years ago

via https://github.com/HalosGhost/halosgho.st/commit/946327dda17ecd45d6d9e1132703bb384c8c0210

Okay. So I ended up going a different route:

This way, I don't need any dynamic content at all and I still get an updated-copyright year.