I'm building a multi-page static site using Pug and Parcel. I have a layout template and my pug files will be located in various levels of directories. For example:
src/
marketing/
_layouts/
layout.pug
about/
index.pug
careers.pug
index.pug
favicon.ico
The favicon is included in layout.pug like this:
link(rel='icon' href='../favicon.ico')
This resolves fine in parcel when it comes to the main index.pug file. This will not resolve when it comes to the about/index.pug or about/careers.pug files because they are a level deeper in the about directory.
How can I resolve this so it works for all pages no matter where they are in the hierarchy?
There doesn't seem to be a way I can find that allows an absolute file path with Parcel.