Include path to source page in non-relative ref/relref warning
authorJustin Van Patten <jvp@justinvp.com>
Wed, 26 Jun 2019 06:26:02 +0000 (23:26 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 26 Jun 2019 07:25:12 +0000 (09:25 +0200)
commit59c4bc52ed6b146baa6cca97d054004297ea098a
tree1cdb748e32334610e686c37bb4623a0016e3f6ed
parentdc1d4a9200c54e631775f34725140fd5009aa561
Include path to source page in non-relative ref/relref warning

We occasionally see warnings when building our site:

```
WARN 2019/06/25 23:07:08 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}
```

But the `%q` value is missing, making it difficult to track down the source of the warning.

This change addresses that, by including the source path in the warning:

```
WARN 2019/06/25 23:07:31 make non-relative ref/relref page reference(s) in page "blog/my-post/index.md" absolute, e.g. {{< ref "/blog/my-post.md" >}}
```
hugolib/pagecollections.go