News for hackers. Stuff that matters.
Re:Short URLs: Why and How by mikae1 on Monday May 09, 2022 @01:27AM (#31310913)
Depending on how much your write, URL collisions can naturally become a real problem. If you use a SSG then all your post HTML documents will be in the same directory, forever. This isn't a problem if you don't spit out posts, but if you post a lot your directory can become rather unwieldy. I'd say, at least throw a year in there: /2022/su/.
Re:Short URLs: Why and How by mijamo on Monday May 09, 2022 @02:00AM (#31311090)
SSG can usually be configured. You could have whatever folder structure you want and still have all the URLs straight under the root.
Re:Short URLs: Why and How by Brajeshwar on Monday May 09, 2022 @01:30AM (#31310933)
This is indeed a big problem I faced when I moved from WordPress to Jekyll. I decided to segregate them by year (very unique); so my articles/posts are /yyyy/foo-bar/. I did decided on the URL loooong back in WordPress as that was the most sane thing I could do while still writing a lot but have some segregation. E.g. There are about 93 files/posts in the "2006" folder for my website.
Re:Short URLs: Why and How by SenHeng on Monday May 09, 2022 @02:25AM (#31311208)
I manage this problem by appending a 5 digit number in front each file, ie. 00001-Hello-world.md that I strip from the URL.

It solves multiple problems for me.

1. All articles are sorted automatically.

2. I can visually see how many drafts I have (drafts are 00000-, published at 00nnn-)

Re:Short URLs: Why and How by robobro on Monday May 09, 2022 @04:34AM (#31311840)
Prepending
Re:Short URLs: Why and How by mro_name on Monday May 09, 2022 @02:24AM (#31311202)
Years are a bliss once you want to change your styling and keep an archive as is. Untouched. No work, no risk, nothing breaks.

Cool URIs don't change. Not even their styling.

Re:Short URLs: Why and How by einsty on Monday May 09, 2022 @08:48AM (#31313407)
“Cool URI’s Don’t Change” … https://www.w3.org/Provider/Style/URI