File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -94,44 +94,6 @@ a/b pages: {{ range $ab.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ end }}
9494 )
9595}
9696
97- func TestFrontMatterParamsLang (t * testing.T ) {
98- t .Parallel ()
99-
100- files := `
101- -- hugo.toml --
102- baseURL = "https://example.org/"
103- disableKinds = ["taxonomy", "term"]
104- defaultContentLanguage = "en"
105- defaultContentLanguageInSubdir = true
106- [languages]
107- [languages.en]
108- weight = 1
109- [languages.nn]
110- weight = 2
111- -- content/p1.md --
112- ---
113- title: "P1 nn"
114- lang: "nn"
115- ---
116- -- content/p2.md --
117- ---
118- title: "P2"
119- ---
120- -- layouts/index.html --
121- RegularPages: {{ range site.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ .Title }}|{{ end }}$
122-
123- `
124-
125- b := Test (t , files )
126-
127- b .AssertFileContent ("public/en/index.html" ,
128- "RegularPages: /p2|/en/p2/|P2|$" ,
129- )
130- b .AssertFileContent ("public/nn/index.html" ,
131- "RegularPages: /p1|/nn/p1/|P1 nn|$" ,
132- )
133- }
134-
13597func TestFrontMatterTitleOverrideWarn (t * testing.T ) {
13698 t .Parallel ()
13799
You can’t perform that action at this time.
0 commit comments