minetest.github.io icon indicating copy to clipboard operation
minetest.github.io copied to clipboard

Select a random background image each time the site is built

Open fgaz opened this issue 8 months ago • 5 comments

As suggested by @wsor4035

fgaz avatar May 15 '25 11:05 fgaz

i didnt think anyone was going to take my joke seriously, a sliding image background/carousel would probably be better. that said not opposed to this

wsor4035 avatar May 15 '25 11:05 wsor4035

This doesn't make that much sense, since the site is statically built only once when changed.

sfan5 avatar May 15 '25 12:05 sfan5

since the site is statically built only once when changed

Yes, and by looking at the commit log I see that it happens fairly frequently (monthly at least). Throw in a bunch of different images and you get some variability without having to update the image manually every once in a while.

I agree a carousel would be better (even though there is already a gallery further down the page). This is a low-tech way to get some of that value with a fraction of the work

fgaz avatar May 15 '25 12:05 fgaz

While I think randomizing the image on load via JavaScript is preferable, this is a fine solution too.

Calinou avatar May 15 '25 15:05 Calinou

but literally no point if your only going to have one image

I think it's a good preparation to proceed with screenshot debates in another PR. Adding code to support multiple backgrounds in the first place is a good idea. Also the change is straightforward and only needs a few lines.

SmallJoker avatar May 17 '25 20:05 SmallJoker

after asking for feedback in docs, and getting a little, merging this. however dont expect to stick around forever. might be replaced with a carousel, etc

wsor4035 avatar Aug 17 '25 17:08 wsor4035