quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.88k stars 318 forks source link

Relative path in website page footer #1935

Open jjallaire opened 2 years ago

jjallaire commented 2 years ago

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1934

Originally posted by **statzhero** August 16, 2022 This is probably trivial, but how do I solve the file path issue most elegantly? In `_quarto.yml` I have the following footer ``` page-footer: left: "[Terms](pages/terms.qmd) · Powered by [Quarto](https://quarto.org/)" ``` This works well for the home page, but for any other page I would have to specify the root for `pages/terms.qmd` first?
jjallaire commented 2 years ago

We do fixup relative links in many places but I guess not the footer. You can resolve this by just using an absolute refernece:

[Terms](/pages/terms.qmd)
eitsupi commented 2 years ago

If you do change this behavior, I would appreciate it if you could make it a major version upgrade as I think it would be a breaking change. (I am already using this) https://github.com/rocker-org/website/blob/e329e61ce4386e6e6d65075847e715e81c24049f/_quarto.yml#L13-L14

jjallaire commented 2 years ago

We will always preserve the behavior you are relying on (absolute path in footer markdown)