wattsi
wattsi copied to clipboard
Make <title> element content use split heading content
wattsi currently just copies the <title> contents from the source file, which means all multipage documents end up with the same title, <title>HTML Standard</title>.
Each multipage document should instead have a unique title with HTML Standard appended; e.g.:
<title>Parsing HTML documents — HTML Standard</title><title>Web application APIs — HTML Standard</title>
Do you think we should try to grab the first heading element in the split page, or have a separate attribute, or...?
For example I'm not sure we want to give timers-and-user-prompts.html the title "Timers". Maybe we need w-splittitle="Timers and User Prompts"
For example I'm not sure we want to give timers-and-user-prompts.html the title "Timers". Maybe we need w-splittitle="Timers and User Prompts"
hmm yeah I see what you mean. I had been going to say it should just use the content of whatever headings have split-filename but yeah I think if we do this we should also support an optional attribute like what you describe that could be used to override the the heading content.
Montesdodgers13
#107