diff options
author | Noah Campbell <noahcampbell@gmail.com> | 2013-10-08 18:33:57 +0200 |
---|---|---|
committer | Noah Campbell <noahcampbell@gmail.com> | 2013-10-08 18:44:15 +0200 |
commit | 4993152dda39bceb3585b0bef8717a1af0509dd1 (patch) | |
tree | a53f2fe384c292ddd1a8ca11e7d4770dd33caea8 /hugolib/page_permalink_test.go | |
parent | 6e1268f45be9995c3d503fa34bb5f63a63f49e00 (diff) |
Permalink to include multiple directories levels
Diffstat (limited to 'hugolib/page_permalink_test.go')
-rw-r--r-- | hugolib/page_permalink_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page_permalink_test.go b/hugolib/page_permalink_test.go index e40a78362..b4ef66ba7 100644 --- a/hugolib/page_permalink_test.go +++ b/hugolib/page_permalink_test.go @@ -7,7 +7,7 @@ import ( func TestPermalink(t *testing.T) { tests := []struct { - base template.URL + base template.URL expectedAbs string expectedRel string }{ @@ -18,10 +18,10 @@ func TestPermalink(t *testing.T) { for _, test := range tests { p := &Page{ Node: Node{ - UrlPath: UrlPath{Section: "x/y/z"}, + UrlPath: UrlPath{Section: "z"}, Site: SiteInfo{BaseUrl: test.base}, }, - File: File{FileName: "x/y/z/boofar.md"}, + File: File{FileName: "x/y/z/boofar.md", Dir: "x/y/z"}, } u, err := p.Permalink() |