Duplicate p.Description in Params map
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 12 Dec 2015 21:20:26 +0000 (22:20 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 12 Dec 2015 21:20:26 +0000 (22:20 +0100)
Fixes #1484

hugolib/page.go

index 05ba2e12031862c77600de871f31647d28e7a213..13a3c283e71f09d553108cf859f29a13b82b951d 100644 (file)
@@ -491,6 +491,7 @@ func (p *Page) update(f interface{}) error {
                        p.linkTitle = cast.ToString(v)
                case "description":
                        p.Description = cast.ToString(v)
+                       p.Params["description"] = p.Description
                case "slug":
                        p.Slug = cast.ToString(v)
                case "url":