docs: rename english pirate translation to avoid crash on rendering #90
Description
Yesterday I did a fresh install of the theme,
git submodule add https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn
then used the commands I have previously used
:~/Hugo$ cd mysite/themes/hugo-theme-relearn :~/Hugo/mysite/themes/hugo-theme-relearn$ hugo server --source=exampleSite --themesDir=../..
Start building sites …
hugo v0.88.1-5BC54738 linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
Error: Error building site: render of "sitemap" failed: execute of template failed: template: _default/sitemap.xml:2:4: executing "_default/sitemap.xml" at <partial "page-meta.go" .>: error calling partial: "/home/********/Hugo/mysite/themes/hugo-theme-relearn/layouts/partials/page-meta.go:8:50": execute of template failed: template: partials/page-meta.go:8:50: executing "relearn-structure" at <.node.RelPermalink>: error calling RelPermalink: runtime error: invalid memory address or nil pointer dereference
Built in 628 ms
renamed page-meta.go to page-meta.html
$ hugo server --source=exampleSite --themesDir=../..
Start building sites …
hugo v0.88.1-5BC54738 linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
Error: Error building site: render of "sitemap" failed: "/home/********/Hugo/mysite/themes/hugo-theme-relearn/layouts/_default/sitemap.xml:2:4": execute of template failed: template: _default/sitemap.xml:2:4: executing "_default/sitemap.xml" at <partial "page-meta.go" .>: error calling partial: partial "page-meta.go" not found
Built in 34 ms
Then modified sitemap.xml
from {{- partial "page-meta.go" . }} to {{- partial "page-meta.html" . }}
$ hugo server --source=exampleSite --themesDir=../..
Start building sites …
hugo v0.88.1-5BC54738 linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
Error: Error building site: render of "sitemap" failed: execute of template failed: template: _default/sitemap.xml:2:4: executing "_default/sitemap.xml" at <partial "page-meta.html" .>: error calling partial: "/home/********/Hugo/mysite/themes/hugo-theme-relearn/layouts/partials/page-meta.html:8:50": execute of template failed: template: partials/page-meta.html:8:50: executing "relearn-structure" at <.node.RelPermalink>: error calling RelPermalink: runtime error: invalid memory address or nil pointer dereference
Built in 33 ms
I also modified meta.html to {{- partial "page-meta.html" . }}
, tried again, same error. I noticed there were a number of modifications in config.toml , but they all seemed multi-language focused and I don't use that. There was one new setting
disableSeoHiddenPages = true
and I added that in.