mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
committed by
Bjørn Erik Pedersen
parent
b0686712ba
commit
b9add1c702
@@ -478,12 +478,12 @@ Content: {{ .Content }}
|
||||
|
||||
// Regular mode
|
||||
b := hugolib.Test(t, files)
|
||||
b.AssertFileContent("public/index.html", "d5b2a079cc37d0ed")
|
||||
b.AssertFileContent("public/index.html", "d1f592d2256ac3ff")
|
||||
|
||||
// Simple mode
|
||||
files = strings.ReplaceAll(files, "privacy.vimeo.simple = false", "privacy.vimeo.simple = true")
|
||||
b = hugolib.Test(t, files)
|
||||
b.AssertFileContent("public/index.html", "73b8767ce8bdf694")
|
||||
b.AssertFileContent("public/index.html", "c5bf16d87e2a370b")
|
||||
|
||||
// Simple mode with non-existent id
|
||||
files = strings.ReplaceAll(files, "{{< vimeo 55073825 >}}", "{{< vimeo __id_does_not_exist__ >}}")
|
||||
|
Reference in New Issue
Block a user