laozhu / hugo-nuo

🎨 A responsive light & clean hugo theme for blogger.
https://laozhu.me
MIT License
427 stars 150 forks source link

修复百度统计报错 #102

Closed mohuishou closed 5 years ago

mohuishou commented 5 years ago

修复前报错信息

$ hugo serve
Building sites … ERROR 2019/01/07 00:17:55 render of "page" failed: execute of template failed: template: post\single.html:39:5: executing "main" at <part
ial "footer.html...>: error calling partial: "E:\SoftFile\blog\themes\hugo-nuo\layouts\partials\footer.html:69:47": execute of template failed: template: partials/footer.html:69:47: executing "partials/footer.html" at <.Site.Params.baiduto...>: can't evaluate field Site in type string
ERROR 2019/01/07 00:17:55 render of "page" failed: execute of template failed: template: _default\links.html:19:5: executing "main" at <partial "footer.html...>: error calling partial: "E:\SoftFile\blog\themes\hugo-nuo\layouts\partials\footer.html:69:47": execute of template failed: template: partials/footer.html:69:47: executing "partials/footer.html" at <.Site.Params.baiduto...>: can't evaluate field Site in type string