-
DescriptionImagine I have font files and images that I want to store in my website source and publish at the root, or in a subfolder, of the rendered website. Where would I store those? In a Hugo website, that would correspond to the static/ folder: if I have |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
For a recent site I stood up, I did:
In You can add as many dirs as you like and can reference the files in In: https://companion.hrbrmstr.dev/posts/2023-09-16-rbql/ , the data file is read from I'd link to the repo for the site, but it's not on any social coding service. h/t to Perplexity: https://www.perplexity.ai/search/in-a-quarto-O4GCx4BnQl.lzAeCFddmyA?s=c b/c I could not find out this info after a quick docs scan. |
Beta Was this translation helpful? Give feedback.
-
From https://quarto.org/docs/websites/website-tools.html#site-resources
If the auto-detect fail, you can use
or in the YAML header
If you are working in a Shiny project, check https://quarto.org/docs/interactive/shiny/resources.html#asset-resources. |
Beta Was this translation helpful? Give feedback.
-
I usually put the assets into |
Beta Was this translation helpful? Give feedback.
-
I struggle to make this work for a blog. I got the image The browser makes these requests:
It does so because the image is defined in the html like this
|
Beta Was this translation helpful? Give feedback.
For a recent site I stood up, I did:
In
_quarto.yml
.You can add as many dirs as you like and can reference the files in
data
or wherever with that dir prefix.In: https://companion.hrbrmstr.dev/posts/2023-09-16-rbql/ , the data file is read from
https://companion.hrbrmstr.dev/data/mtcars.csv
.I'd link to the repo for the site, but it's not on any social coding service.
h/t to Perplexity: https://www.perplexity.ai/search/in-a-quarto-O4GCx4BnQl.lzAeCFddmyA?s=c b/c I could not find out this info after a quick docs scan.