Skip to content

Where to store assets for a Quarto website? #6876

Answered by hrbrmstr
maelle asked this question in Q&A
Discussion options

You must be logged in to vote

For a recent site I stood up, I did:

resources:
  - "data/*"

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.

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@maelle
Comment options

@patgd
Comment options

Answer selected by maelle
Comment options

You must be logged in to vote
1 reply
@maelle
Comment options

Comment options

You must be logged in to vote
2 replies
@maelle
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
4 replies
@younes-io
Comment options

@mcanouil
Comment options

@younes-io
Comment options

@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
websites Issues creating websites
6 participants