HTML book: Omit title from index.qmd
#12692
-
Hi all, I am writing a book and rendering it to HTML. At the top of the The only strategy I have found to achieve this is to use a Lua filter: function Meta(m)
m.title = nil
m.subtitle = nil
return m
end The problem with this approach is that the HTML page gets the wrong <title>quarto-input68b854b6d6920232</title> which poses problems for sharing on social media and searching. Is there a better to disable printing the title and subtitle at the top of the index, which still inserting the proper values in the HTML tags? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Using CSS Note that because there is no concrete reproducible example, it's not really possible to provide more help than that. |
Beta Was this translation helpful? Give feedback.
pagetitle
for the title to appear in tabs, etc.Using CSS
display: none;
is in my opinion the simplest way of hiding the elements you don't want from the page display.Note that because there is no concrete reproducible example, it's not really possible to provide more help than that.