Logs for #nikola for 2025-02-18

09:09:52 <jirib> hi, i'm looking for nikola's equivalent of Hugo's 'alias' - https://gohugo.io/content-management/front-matter/#aliases
09:10:11 <jirib> that is, a frontmatter variable for URL aliases
14:42:43 <jirib> iiuc i can only use 'REDIRECTIONS' in conf.py :/ that is, define it globally
14:43:15 <jirib> my goal is to convert huge old static web while keeping old urls but converting it to better structure in Nikola
14:44:11 <jirib> since my REDIRECTIONS might be huge, can i put it in an external file and include it in conf.py ? i assume i can, right?
18:16:19 <ChrisWarrick> jirib: sure
18:16:35 <ChrisWarrick> jirib: I would probably not use REDIRECTIONS in Nikola, but do it in nginx
19:30:20 <jirib> ChrisWarrick: i can't use the webserver for this :/
19:30:44 <ChrisWarrick> jirib: ok, the REDIRECTIONS using html meta refresh are meh, but will work
19:31:00 <ChrisWarrick> search engines would prefer server-side redirections though
19:32:48 <jirib> where should i look if i would like to add 'alias' (redirection) into a post/page frontmatter ?
19:33:15 <jirib> i mean, which code to read as starting point for a plugin...
19:33:35 <ChrisWarrick> that would be a Task plugin
19:34:21 <ChrisWarrick> perhaps nikola/plugins/task/pages.py would be the easiest to read
19:34:45 <jirib> thank you
19:34:53 <ChrisWarrick> you’re welcome!