Neocities.org

NENRIKIDO

nenrikido.neocities.org

613,104 views
404 followers
3,189 updates
0 tips
Wow! Okay. Neocities preview betrayed me, so I'll announce updates here: Rainbow Theme for Tumblr has been posted on the Code page (https://nenrikido.neocities.org/code/). Also optimized images to make things a little more efficient, which had...unintended consequences.
19 likes
nenrikido 5 months ago

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.

3 likes
suboptimalism 5 months ago

i know just the place to write this down...

1 like
suboptimalism 5 months ago

according to the code the file name limit is 100 characters, and there's a 1200 character limit for the file path

1 like
nenrikido 5 months ago

@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--

1 like
nenrikido 5 months ago

--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.

1 like
suboptimalism 5 months ago

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

1 like
suboptimalism 5 months ago

well, looks like somebody already pointed this issue out a few months ago... https://github.com/neocities/neocities/issues/498

1 like
nenrikido 5 months ago

@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...

1 like
sorbier 5 months ago

could it be that the space is encoded as %20 so it’s actually three characters?

1 like
angeleyesprings 5 months ago

Theme looks beautiful!

1 like

Website Stats

Last updated 1 week ago
CreatedFeb 22, 2023
Site Traffic Stats

Tags

art coding books personal