mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Prevent minifier from removing quoutes around post-processed attributes
Fixes #8884
This commit is contained in:
@@ -39,7 +39,11 @@ type PostPublishedResource interface {
|
||||
|
||||
const (
|
||||
PostProcessPrefix = "__h_pp_l1"
|
||||
PostProcessSuffix = "__e"
|
||||
|
||||
// The suffix has an '=' in it to prevent the minifier to remove any enclosing
|
||||
// quoutes around the attribute values.
|
||||
// See issue #8884.
|
||||
PostProcessSuffix = "__e="
|
||||
)
|
||||
|
||||
func NewPostPublishResource(id int, r resource.Resource) PostPublishedResource {
|
||||
|
Reference in New Issue
Block a user