Maybe add like a private field sourceLineNumber in ContentBlock
For the YAML frontmatter, the best we can do is to just output the whole frontmatter (or else it would require a YAML parser that keeps the line number, and manual loading into a struct, a bit too overkill since most frontmatters won't be that long)
Or maybe we could do a second parse phase in error handling that keeps line numbers just to get to the error (e.g. layout spec analysis)
Maybe add like a private field sourceLineNumber in
ContentBlock
For the YAML frontmatter, the best we can do is to just output the whole frontmatter (or else it would require a YAML parser that keeps the line number, and manual loading into a struct, a bit too overkill since most frontmatters won't be that long) Or maybe we could do a second parse phase in error handling that keeps line numbers just to get to the error (e.g. layout spec analysis)