Refactor the way canonical URLs are constructed
In !211 (merged), we introduced a way to add canonical URLs in the head of each file. The code could use some refactoring, like:
- use a variable for the identifier array and re-use it in the conditional
- make the conditional simpler
Edited by Achilleas Pipinellis