mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 11:42:37 +00:00
9e1c85bbddea057fcc42a3b4d3e6ff4478b5b11e
This reverts commit bb30e7c08f.
We don't want to document this, at least not this way.
The PAGE.String method is currently meant to be used to give contextual information about a page (path, filename).
It's meant for error messages, so you can do
```
{{ warnf "foo not found in %q" .Page }}
```
But when documented as "Returns the absolute path to the file backing the given page", that is
1. Not entirely correct.
2. Makes it a formal API that people will use as a filename/path, and we can never change it (e.g. to add more contextual information)
Description
Languages
Go
93.9%
C
2.5%
JavaScript
2.5%
HTML
0.8%
Makefile
0.2%