mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Remove the hugo-nav function
Remove the hugo-nav since it relied on a slow library. The current build reimplements the absurl functionality based on string replace. Discovered that my prior implementation missed the requirement for making absolute paths (/path) absolute with the host, whereas a relative path is left untouched. Updated the test cases to support this if this is reimplemented.
This commit is contained in:
@@ -81,7 +81,7 @@ func TestPageCount(t *testing.T) {
|
||||
t.Errorf("No indexed rendered. %v", target.Files)
|
||||
}
|
||||
|
||||
expected := "<html><head></head><body>..</body></html>"
|
||||
expected := ".."
|
||||
if string(blueIndex) != expected {
|
||||
t.Errorf("Index template does not match expected: %q, got: %q", expected, string(blueIndex))
|
||||
}
|
||||
|
Reference in New Issue
Block a user