quarto-dev / quarto-cli

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

embedded brand metadata does not show logo in html output #11309

Open gordonwoodhull opened 1 week ago

gordonwoodhull commented 1 week ago

This does not show the logo in html, but it works for typst:

logo-embedded.qmd

---
title: logo across formats
format:
  html: default
  typst:
    keep-typ: true
brand:
  logo:
    images:
      quarto:
        path: quarto.png
        alt: quarto logo
      posit:
        path: posit-logo-2024.svg
        alt: posit logo
    medium: quarto
    large: posit
---

{{< lipsum 4 >}}

_quarto.yml

project:
  type: website
website:
  sidebar:
    style: "docked"

    contents: []

However if I move _brand.yml to its own file

_brand.yml

logo:
  images:
    quarto:
      path: quarto.png
      alt: quarto logo
    posit:
      path: posit-logo-2024.svg
      alt: posit logo
  medium: quarto
  large: posit

logo-linked.qmd

---
title: logo across formats
format:
  html: default
  typst: default
---

{{< lipsum 4 >}}

This displays the logo in both formats.

(I have a feeling I have created cross-format compatibility bugs by allowing logo to be an object for typst, ran into this bug on the way.)

cscheid commented 6 days ago

I can't seem to repro this one. @gordonwoodhull let's go over this in person tomorrow?

gordonwoodhull commented 6 days ago

Sure... I am likely misunderstanding something, but I can still repro.