jsonresume/jsonresume.org

Add `?theme=random` to registry

Opened this issue · 2 comments

It would be useful to be able to visit

https://registry.jsonresume.org/thomasdavis?theme=random

and it redirect you to a random theme.

This could be as simple as making ?theme=random a special endpoint, and returning something like

<!DOCTYPE html>
<html lang="en">
  <head>
    <script>
      // redirect
      options = ["kendall", "onepage", "simple"];

      window.location.href =
        "https://registry.jsonresume.org/thomasdavis?theme=" +
        options[Math.floor(Math.random() * options.length)];
    </script>
  </head>
</html>

I like this idea, will do.

levino commented

I think the random choice of the random theme should and can easily be done on the server side.