Instance MethodMethodload
loadIndexContent(from:)
Loads and parses the INDEX file if it exists.
func loadIndexContent(from packageDirectory: URL) -> IndexContent ?Parameters
packageDirectoryThe root directory of the package.
Return Value
The parsed index content, or nil if no INDEX exists.
Discussion
If the file starts with an H1 heading, it is extracted as the page title and removed from the body content.