I am using in the front matter of both content files:
aliases = [ "/drug1" ]
aliases = [ "/drug2" ]
When I generate the site and go to localhost:1313/drug1 or localhost:1313/drug2, I get a 404
How come the alias won’t work?
I want the page to be accessible by going to site.com/drugs/drug1
It works when I build the site on server. When I test locally, I don’t get this behavior as I expect.
Shall I use Permalinks settings?
drugs = /:section/:slug? But I think that only affects that particular section
Repo is public: https://gitlab.com/hashborgir/psychedelicsdaily.com-hugo.git