1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Add /index.html to unadorned alias paths

Bring code to be better in line with documentation.
This commit is contained in:
Noah Campbell
2013-09-13 14:46:34 -07:00
parent 803a0fce1e
commit d45fb72f67
5 changed files with 37 additions and 25 deletions

View File

@@ -13,9 +13,13 @@ func TestHTMLRedirectAlias(t *testing.T) {
expected string
}{
{"", ""},
{"alias 1", "alias-1"},
{"s", "s/index.html"},
{"/", "/index.html"},
{"alias 1", "alias-1/index.html"},
{"alias 2/", "alias-2/index.html"},
{"alias 3.html", "alias-3.html"},
{"alias4.html", "alias4.html"},
{"/alias 5.html", "/alias-5.html"},
}
for _, test := range tests {