mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Move AbUrlify to post content transformation
Currently the a@href and script@src elements will have BaseUrl applied to their elements prior to being written to disk.
This commit is contained in:
@@ -96,8 +96,9 @@ func TestPageCount(t *testing.T) {
|
||||
t.Errorf("No indexed rendered. %v", target.files)
|
||||
}
|
||||
|
||||
if len(blueIndex) != 2 {
|
||||
t.Errorf("Number of pages does not equal 2, got %d. %q", len(blueIndex), blueIndex)
|
||||
expected := "<html><head></head><body>..</body></html>"
|
||||
if string(blueIndex) != expected {
|
||||
t.Errorf("Index template does not match expected: %q, got: %q", expected, string(blueIndex))
|
||||
}
|
||||
|
||||
for _, s := range []string{
|
||||
|
Reference in New Issue
Block a user