hrefFor
Where a link to the page kept in file goes: the file itself in the static site, and its path without the
.html in the app (apps, and ./ for the index), which renders it on the server.
export const hrefFor = (file: string, live: boolean): string => (!live ? file : file === "index.html" ? "./" : file.replace(/\.html$/, ""))