How can I suppress custom title-metadata.html template values from book output pages? #11983
Unanswered
mattpollock
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have created a new
title-metadata.html
partial modifying this source. I added various custom fields I wanted in the title block, similar to #3974 and #6756.I'm supporting rather long documents and so need to extend the quarto
book
project type.This works great on my
index.html
outputHowever, while the default title metadata elements (
author
,published
,abstract
) are removed for subsequent pages of the book, the custom additions I made are notMy goal here is to suppress the extra metadata on all pages except
index.html
just likeauthor
,published
, andabstract
are already suppressed.I suspect that I need a
lua
filter somewhere to handle this, but after some digging I have been unable to find the one that handles removing the standard book entries.Reproducible Example
Please see https://github.com/mattpollock/quarto-custom-metadata for a reproducible example. This example illustrates the problem and the solution @mcanouil proposed. I'm still curious if the same mechanism quarto book uses for its standard metadata fields (e.g., "author") could be used in lieu of the
include-in-header
CSS trick.Beta Was this translation helpful? Give feedback.
All reactions