Open
Description
Bug description
Originally posted in posit-dev/brand-yml#66 (comment) by @szimmer:
I have an images folder in the root of a quarto site project. I then wanted to have subdirectories and some .qmd files in those subdirectories. When I do this, the icons work on the site but not on files in the subdirectory. I made a fairly small example.
- The slides that are in the root directory show the icons: https://szimmer.github.io/try-quarto-brand/slides.html#/title-slide
- The slides in the subdirectory do not show the icons: https://szimmer.github.io/try-quarto-brand/slides/slides.html#/title-slide
It would be ideal if branding worked in all directories.
Steps to reproduce
See https://github.com/szimmer/try-quarto-brand, which contains a _brand.yml
file with (essentially)
logo:
small: images/favicon.png
medium: images/favicon.png
a _quarto.yml
project:
type: website
website:
title: "tmpsite"
navbar:
left:
- href: index.qmd
text: Home
- about.qmd
format:
html:
theme:
- cosmo
- brand
css: styles.css
toc: true
and two slides files
* slides.qmd
* slides/slides.qmd
Both slide files are identical
---
title: "Untitled"
format: revealjs
---
## Here's a slide
Expected behavior
Both slides, when rendered, should show the logo in the slides.
Actual behavior
Only the slides.qmd
has the logo, slides/slides.qmd
has a broken image.
Your environment
- GitHub Actions:
ubuntu-latest
- Quarto: v1.6.40
- https://github.com/szimmer/try-quarto-brand/blob/main/.github/workflows/publish.yml
Quarto check output
quarto v1.6.40