Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ?theme=random to registry #7

Open
alifeee opened this issue Oct 13, 2023 · 2 comments
Open

Add ?theme=random to registry #7

alifeee opened this issue Oct 13, 2023 · 2 comments

Comments

@alifeee
Copy link

alifeee commented Oct 13, 2023

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>
@thomasdavis
Copy link
Member

I like this idea, will do.

@levino
Copy link
Collaborator

levino commented Nov 26, 2023

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

levino added a commit that referenced this issue Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants