TLDR: Hugo can automate cropping + compression for thumbnails, but it makes the file names pretty long. Neocities apparently will not allow you to upload a file if its file name is over ~95 characters long, and this error will break the Github Action for Neocities deployment. Fixing this was an odyssey, but I feel like this is actually pretty important information that should be noted somewhere.
according to the code the file name limit is 100 characters, and there's a 1200 character limit for the file path
@suboptimalism That's interesting. One of the files that threw an error was images/gallery/tatsu final 2_hu238f7a014c725591b5f8da415cee4242_533829_0x420_resize_q75_h2_box_3.webp, which by my count should only be 99 characters (not including the file path), but I wonder if spaces or something count differently? Also, it was very unhappy with some of my code images even after shortening the file names, and I had to--
--change the file path so they were not so deeply nested. I am not sure if my files were just hexed or if there's something janky in the source code, but it rejected my 79 character file name (with file path it was 114) until I shortened the file path to cut the whole thing down to 92 characters.
it looks to me in the code like there might be a bug where "filename.length" is checked against both limits (so the effective max is 100). if filename.length is actually the full path, then that would mean even for the path there's a 100 char limit
well, looks like somebody already pointed this issue out a few months ago... https://github.com/neocities/neocities/issues/498
@suboptimalism No way! Good find. Gonna comment in that thread. Although given what it took to get the block function revisions, I am not optimistic for a timely fix...
could it be that the space is encoded as %20 so it’s actually three characters?
It's a modified version of this: https://code-boxx.com/custom-audio-player-playlist/ and my SCSS customization is here: https://github.com/js044/nenrikido/blob/main/assets/sass/music.scss
funnily enough i have already made a hunter website. on neocities. Stay tuned. big plans.
Exciting! Let's go!!