Closed olayway closed 1 week ago
@olayway it's more than that IMO: it should only extract a h1 heading that is at the very start of the document ie. after i strip frontmatter and whitespace # heading
is the first set of characters.
this will be prioritized and someone from the team (not Ola) will pick it up @rufuspollock
@gradedSystem how's it going with this issue?
FIXED
Note: currently you need to re-create your site in order for this to take effect
DataHub Cloud tries to display page titles instead in the sidebar. If title is not provided, it tries to extract it. However, it should only try to extract the first h1 level heading and only if no content is found before it. Currently it also extracts h2s as well if h1 hasn't been found, which shouldn't happen.
File names:![image](https://github.com/datopian/datahub/assets/52197250/bb998af7-a0e0-4d7b-a9b6-2f4ab105279e)
Resulting side bar links:![image](https://github.com/datopian/datahub/assets/52197250/6be5c710-9fd8-487c-8956-609a653c65b5)
But none of the files have h1 or
title
frontmatter field set, so they should actually default to file names.