summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-02-01 17:35:51 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-02-01 18:20:13 +0100
commitf5ec75db36eb24497bc9c8c42e39654d31f7582b (patch)
treeabdfa7ff3acc6e686fa33aeffd661307a636c477
parent6cb3bda3d1c0f8df1b9858cebf350f9b8a36cd37 (diff)
hugolib: Adjust a test case
-rw-r--r--hugolib/pagebundler_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/hugolib/pagebundler_test.go b/hugolib/pagebundler_test.go
index 123d752e0..54ea04c7a 100644
--- a/hugolib/pagebundler_test.go
+++ b/hugolib/pagebundler_test.go
@@ -150,6 +150,8 @@ defaultContentLanguageInSubdir = true
[languages]
[languages.en]
weight = 1
+[languages.en.permalinks]
+"/" = "/enpages/:slug/"
[languages.nn]
weight = 2
-- content/mybundle/index.md --
@@ -173,8 +175,8 @@ Resources: {{ range .Resources }}RelPermalink: {{ .RelPermalink }}|Content: {{ .
`
b := Test(t, files)
- b.AssertFileContent("public/en/mybundle/index.html", "My Bundle|/en/mybundle/|en|\nResources: RelPermalink: /en/mybundle/f1.txt|Content: F1|RelPermalink: /en/mybundle/f2.txt|Content: F2||")
- b.AssertFileContent("public/nn/mybundle/index.html", "My Bundle NN|/nn/mybundle/|nn|\nResources: RelPermalink: /en/mybundle/f1.txt|Content: F1|RelPermalink: /nn/mybundle/f2.nn.txt|Content: F2 nn.||")
+ b.AssertFileContent("public/en/enpages/my-bundle/index.html", "My Bundle|/en/enpages/my-bundle/|en|\nResources: RelPermalink: /en/enpages/my-bundle/f1.txt|Content: F1|RelPermalink: /en/enpages/my-bundle/f2.txt|Content: F2||")
+ b.AssertFileContent("public/nn/mybundle/index.html", "My Bundle NN|/nn/mybundle/|nn|\nResources: RelPermalink: /en/enpages/my-bundle/f1.txt|Content: F1|RelPermalink: /nn/mybundle/f2.nn.txt|Content: F2 nn.||")
}
func TestMultilingualDisableLanguage(t *testing.T) {