mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
2 files changed
+2
-2
No files matched your search
@@ -80,7 +80,7 @@ func TestAliasMultipleOutputFormats(t *testing.T) {
|
||||
|
||||
// the alias redirectors
|
||||
b.AssertFileContent("public/foo/bar/index.html", "<meta http-equiv=\"refresh\" content=\"0; ")
|
||||
b.AssertFileContent("public/foo/bar/amp/index.html", "<meta http-equiv=\"refresh\" content=\"0; ")
|
||||
b.AssertFileContent("public/amp/foo/bar/index.html", "<meta http-equiv=\"refresh\" content=\"0; ")
|
||||
assert.False(b.CheckExists("public/foo/bar/index.json"))
|
||||
}
|
||||
|
||||
|
||||
@@ -305,7 +305,7 @@ func (s *Site) renderAliases() error {
|
||||
for _, a := range p.Aliases() {
|
||||
if f.Path != "" {
|
||||
// Make sure AMP and similar doesn't clash with regular aliases.
|
||||
a = path.Join(a, f.Path)
|
||||
a = path.Join(f.Path, a)
|
||||
}
|
||||
|
||||
lang := p.Language().Lang
|
||||
|
||||
Reference in new issue
Block a user