mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
tpl/tplimpl: Remove leading whitespaces produced by Youtube shortcode
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
329b2342f0
commit
13b208e2f7
@@ -675,12 +675,12 @@ title: p2
|
||||
|
||||
b := hugolib.Test(t, files)
|
||||
|
||||
b.AssertFileContent("public/p1/index.html", "515600e76b272f51")
|
||||
b.AssertFileContent("public/p2/index.html", "b5ceeace7dfa797a")
|
||||
b.AssertFileContent("public/p1/index.html", "a0a6f5ade9cc3a9f")
|
||||
b.AssertFileContent("public/p2/index.html", "289c655e727e596c")
|
||||
|
||||
files = strings.ReplaceAll(files, "privacy.youtube.privacyEnhanced = false", "privacy.youtube.privacyEnhanced = true")
|
||||
|
||||
b = hugolib.Test(t, files)
|
||||
b.AssertFileContent("public/p1/index.html", "e92c7f4b768d7e23")
|
||||
b.AssertFileContent("public/p2/index.html", "c384e83e035b71d9")
|
||||
b.AssertFileContent("public/p1/index.html", "b76d790c20d2bd04")
|
||||
b.AssertFileContent("public/p2/index.html", "a6db910a9cf54bc1")
|
||||
}
|
||||
|
Reference in New Issue
Block a user