There was an error while loading. Please reload this page.
I understand that .GetPage on both Page and Site have some fuzziness when finding a page, but I was surprised by this.
.GetPage
Page
Site
content/ ├── p1/ │ ├── index.md │ └── p1.xyz └── _index.md
layouts/_default/home.html
{{ with .Page.GetPage "p1.xyz" }} .Page.GetPage: {{ .RelPermalink }} {{ end }} {{ with .Site.GetPage "p1.xyz" }} .Site.GetPage: {{ .RelPermalink }} {{ end }}
public/index.html
.Page.GetPage: /p1/ .Site.GetPage: /p1/
I would expect both methods to return nil because p1.xyz is a page resource, not a page.