Merge pull request #544 from trheyi/main
[fix] sui slot variables in data
This commit is contained in:
commit
c3fbc83cd5
1 changed files with 3 additions and 1 deletions
|
|
@ -68,9 +68,11 @@ func (page *Page) BuildForImport(option *BuildOption, slots map[string]interface
|
||||||
|
|
||||||
data := map[string]interface{}{}
|
data := map[string]interface{}{}
|
||||||
if slots != nil {
|
if slots != nil {
|
||||||
|
slotvars := map[string]interface{}{}
|
||||||
for k, v := range slots {
|
for k, v := range slots {
|
||||||
data[k] = v
|
slotvars[k] = v
|
||||||
}
|
}
|
||||||
|
data["$slot"] = slotvars
|
||||||
}
|
}
|
||||||
|
|
||||||
if attrs != nil {
|
if attrs != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue