llrs / blogR

My blogdown site with R related posts
https://llrs.dev
0 stars 0 forks source link

Redirecting missing pages #59

Closed llrs closed 2 years ago

llrs commented 2 years ago

To fix reported missing pages (and in case I ever change things again) I need to add aliases on the posts: https://kevingimbel.de/blog/2020/01/hugo-aliases-and-redirects/

Official documentation

Apparently they cannot be done generally for in a single file for all missing/moving pages

llrs commented 2 years ago

This is if I change the permalinks on config.toml

For intance if I change

[permalinks]
-  post = "/:year/:month/:day/:slug/" 
+  post = "post/:year/:month/:day/:slug/" 

I will need to add an alias for all the posts, which currently do not display on baseURL/post/....

llrs commented 2 years ago

I could also use _redirects but that might be Netlify-specific, not that I plan to change, but if they charge or I decide to change it can become a problem

llrs commented 2 years ago

Might be not needed as the .html files of the bundles are not fully documents so I might be able to edit the header and add the aliases to each post when/if I change the permalink.

llrs commented 2 years ago

t might be not needed to redirect I was already using. I added a few more to account for the change on the permalink of posts