1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-26 23:24:39 +01:00

IterationKeyedMap straggler

This commit is contained in:
Oliver Steele 2017-08-16 15:57:14 -04:00
parent 8e0c8743a9
commit 20135ca602

View File

@ -8,6 +8,7 @@ import (
"github.com/osteele/gojekyll/utils"
"github.com/osteele/liquid"
"github.com/osteele/liquid/render"
"github.com/osteele/liquid/tags"
"github.com/tdewolff/minify"
"github.com/tdewolff/minify/html"
)
@ -55,7 +56,7 @@ func (p seoTag) TagBody() (string, error) {
var (
ctx = p.ctx
site = liquid.FromDrop(ctx.Get("site")).(map[string]interface{})
page = liquid.FromDrop(ctx.Get("page")).(map[string]interface{})
page = liquid.FromDrop(ctx.Get("page")).(tags.IterationKeyedMap)
pageTitle = page["title"]
siteTitle = site["title"]
canonicalURL = fmt.Sprintf("%s%s", site["url"], page["url"])