shithub: hugo

Download patch

ref: 4644b95bd568946429482aa36eeaff1eec6a7075
parent: 1089cfe4e1c35bec1f269b8280da43b367b5d070
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Wed Aug 14 04:11:39 EDT 2019

hugolib: Remove temporary warning

--- a/hugolib/pagecollections.go
+++ b/hugolib/pagecollections.go
@@ -27,7 +27,6 @@
 	"github.com/pkg/errors"
 
 	"github.com/gohugoio/hugo/cache"
-	"github.com/gohugoio/hugo/helpers"
 	"github.com/gohugoio/hugo/resources/page"
 )
 
@@ -285,11 +284,6 @@
 		// Many people will have "post/foo.md" in their content files.
 		p, err := c.getFromCache("/" + ref)
 		if err == nil && p != nil {
-			if context != nil {
-				// TODO(bep) remove this case and the message below when the storm has passed
-				err := wrapErr(errors.Errorf(`make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}`, context.Path()), context)
-				helpers.DistinctWarnLog.Println(err)
-			}
 			return p, nil
 		}
 		if err != nil {