I am trying to deploy my hugo project with a theme different than ananke as a submodule on AWS Amplify. But on while building my site on AWS I get next error(tried with terrassa and mero themes):
2019-06-22T23:28:55.910Z [WARNING]: Error: "/codebuild/output/src464253642/src/hugo-sandbox/themes/terrassa/layouts/partials/head.html:10:1": parse failed: template: partials/head.html:10: function "hugo" not defined
Locally server runs fine. gitmodules include the themes/terrassa. My build command is simple hugo. What can be wrong?