External Links in Quarto Front Matter #3969
Replies: 4 comments 6 replies
-
You can't, what you have to do is regular html linking: include-in-header:
- text: |
<link rel="stylesheet" href="style.css" type="text/css"> |
Beta Was this translation helpful? Give feedback.
-
Not sure if it's a good idea but I think you can make symlinks to a single centrally-stored scss (on your machine) in each project, to keep them "dry" (assuming you're running quarto locally and not on the cloud via CI). |
Beta Was this translation helpful? Give feedback.
-
These were great suggestions and I appreciate the quick response. I was able to use @mcanouil 's suggestion and it worked perfectly. I also just learned about Quarto Projects and how to merge YAML, which is a game-changer for me. I'm really impressed by Quarto. The deeper I get into it the more I realize how powerful it is. Thanks again to the R community for the quick response. |
Beta Was this translation helpful? Give feedback.
-
Other idea with shared online file to sync up locally with a Quarto Project at each render : Do a download and update of the files in a pre-render step ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to DRY up my code. I use the same custom stylesheet and header include on every Quarto presentation. I'd like to store them in the cloud and reference in my front matter. But every attempt has failed. For my theme, I tried:
theme: [default, "https://link.to.my.custom.scss"]
That didn't work. Same for this code:
include-in-header: file: "https://link.to.my.cloud.insert.file"
How might I accomplish this? I hate how fat my GitHub repository is becoming with the same files.
Beta Was this translation helpful? Give feedback.
All reactions