mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
parser/pageparser: Fix handling of commented out front matter
When the page parser was rewritten in 0.51, this was interpreted literally, but commented out front matter is used in the wild to "hide it from GitHub", e.g: ``` <!-- +++ title = "hello" +++ --> ``` Fixes #5478
This commit is contained in:
@@ -108,7 +108,6 @@ const (
|
||||
|
||||
// page items
|
||||
TypeHTMLStart // document starting with < as first non-whitespace
|
||||
TypeHTMLComment // We ignore leading comments
|
||||
TypeLeadSummaryDivider // <!--more-->, # more
|
||||
TypeFrontMatterYAML
|
||||
TypeFrontMatterTOML
|
||||
|
Reference in New Issue
Block a user