mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	hugolib: Redo the summary delimiter logic
Now that we have a proper page parse tree, this can be greatly simplified. See #5324
This commit is contained in:
		@@ -20,7 +20,7 @@ import (
 | 
			
		||||
	"github.com/chaseadamsio/goorgeous"
 | 
			
		||||
	"github.com/gohugoio/hugo/parser/pageparser"
 | 
			
		||||
	"github.com/pkg/errors"
 | 
			
		||||
	yaml "gopkg.in/yaml.v1"
 | 
			
		||||
	yaml "gopkg.in/yaml.v2"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Format string
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
 | 
			
		||||
	"github.com/spf13/cast"
 | 
			
		||||
	yaml "gopkg.in/yaml.v1"
 | 
			
		||||
	yaml "gopkg.in/yaml.v2"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// HandleYAMLData unmarshals YAML-encoded datum and returns a Go interface
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user