mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
content adapter: Handle <!--more--> separator in content.value
Closes #12556
This commit is contained in:
@@ -47,15 +47,6 @@ func ParseBytes(b []byte, cfg Config) (Items, error) {
|
||||
return l.items, l.err
|
||||
}
|
||||
|
||||
// ParseBytesMain parses b starting with the main section.
|
||||
func ParseBytesMain(b []byte, cfg Config) (Items, error) {
|
||||
l, err := parseBytes(b, cfg, lexMainSection)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return l.items, l.err
|
||||
}
|
||||
|
||||
type ContentFrontMatter struct {
|
||||
Content []byte
|
||||
FrontMatter map[string]any
|
||||
|
Reference in New Issue
Block a user