From Jekyll to Hugo: my experience as a noob in web development
giuliomagnifico.blog
giuliomagnifico.blog
You can use a regular expression to write a single redirect for all the posts. Something like the following could do the trick:
location ~ ^/(home|networking|misc|tips)/(\d{4})/(\d{2})/(\d{2})/([a-zA-Z0-9-_]+)\.html {
return 301 https://giuliomagnifico.blog/post/$2-$3-$4-$5/;
}In both Jekyll and Hugo your templates are separate from your posts.
And before switching static site generators because "the structure of the URLs linking to each article is much simpler and more convenient", maybe read the documentation: https://jekyllrb.com/docs/permalinks/
You can have the exact same URL scheme in Jekyll.
About the URL: I didn’t know that, thanks. When I installed Jekyll, it was already set up with this URL scheme. Same for Hugo, it’s fhe default behavior, but it has a better scheme by default.
As a noob, I didn’t check this when I started with Jekyll years ago. Maybe the devs should change the default scheme. But the issue with the URL scheme isn't the date, it's that if you change the category of a post in Jekyll, it changes in the old posts too. And I don't understand if you can omit the category, all the examples in the documentation include it.