Controlling document-specific formats and metadata with project profiles #4234
Unanswered
andrewpbray
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This didn't get traction the first time, so let me put a point on the key issue here: is it possible to pass metadata to a particular document through a Something like this:
If these were independent documents, I could put together a script that parses this yaml and does a call to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the best way to pass formats and metadata to specific documents within a particular project profile?
For example, take a website with three docs,
index.qmd
,about.qmd
, andschedule.qmd
. Say that in addition to the vanillahtml
format, I've created my owncustom-html
format. My goal is to be able to render two sites from this repo: one with all three files inhtml
format; the second with the first two docs inhtml
format and the third incustom-html
format. What I'd like, conceptually, are two project profiles that look like:But, as far as I know, specifying the format of individual documents (or additional metadata like
date
) is not possible at the project level.The only workaround that occurs to me right now is to do the mixed render as part of two disjoint profiles.
Then do render and publish with the two profiles.
As the number of documents grows and the metadata gets more document specific, however, the number of profiles needed gets too gnarly for this to be the best solution.
Any ideas?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions