Change message for missing HTML title warning.

Suggest setting the `pagetitle` variable instead of setting
`title` in metadata, which also has the effect of adding an h1
element.

Closes #11307.
This commit is contained in:
John MacFarlane
2025-11-30 12:22:56 +01:00
parent af9443a981
commit 176d9be0f3
+1 -2
View File
@@ -377,8 +377,7 @@ showLogMessage msg =
NoTitleElement fallback ->
"This document format requires a nonempty <title> element.\n" <>
"Defaulting to '" <> fallback <> "' as the title.\n" <>
"To specify a title, use 'title' in metadata or " <>
"--metadata title=\"...\"."
"To specify a title, use --variable pagetitle=\"...\"."
NoLangSpecified ->
"No value for 'lang' was specified in the metadata.\n" <>
"It is recommended that lang be specified for this format."