Partial: partial "_internal/pagination.html" not found

Getting this error on a new site

hugo new theme test --themesDir . 
hugo server
ERROR render of "home" failed: "/home/test/layouts/_default/home.html:8:5": execute of template failed: template: _default/home.html:8:5: executing "main" at <partial "_internal/pagination.html" .>: error calling partial: partial "_internal/pagination.html" not found

You must have done more than just typing in these two commands. If I do

hugo new site hugo-site
hugo new theme test --themesDir . 
hugo server

I don’t see any error. Also, the parameter is themesDir, not themesdir.

My bad! I have a VS Code extention that autocompletes hugo codes and I typed partial instead of template to use internal pagination.

Also note this command does not need the hugo new site part since it creates a skeleton site.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.