I am creating a website with quarto (using RStudio). I want to have links between pages on my site, which usually works as described here in the quarto documentation. However, I have saved the .qmd
files for my pages within separate subfolders within the project directory as shown in this example _quarto.yml
:
website:
title: "Main Title"
navbar:
title: "Navbar Title"
left:
- text: Pages
menu:
- text: Page A
href: folderA/pageA.qmd
- text: Page B
href: folderB/pageB.qmd
When trying to add [link](folderB/pageB.qmd)
anywhere within the pageA.qmd
document, it incorrectly creates the link as folderA/folderB/pageB.qmd
which obviously does not work.
How do I correctly assign links between pages in this setting?
here
, which you can use to create paths relative to project root directory. – Gauthier