mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Homepage "/" respects PublishDir
It wasn't taking the value of PublishDir into consideration for the special case of the homepage "/". Fixes #75
This commit is contained in:
@@ -49,8 +49,6 @@ func TestPageCount(t *testing.T) {
|
||||
s := &Site{Target: target}
|
||||
s.prepTemplates()
|
||||
must(s.addTemplate("indexes/blue.html", INDEX_TEMPLATE))
|
||||
//s.Files = append(s.Files, "blue/doc1.md")
|
||||
//s.Files = append(s.Files, "blue/doc2.md")
|
||||
s.Pages = append(s.Pages, mustReturn(ReadFrom(strings.NewReader(SLUG_DOC_1), filepath.FromSlash("content/blue/doc1.md"))))
|
||||
s.Pages = append(s.Pages, mustReturn(ReadFrom(strings.NewReader(SLUG_DOC_2), filepath.FromSlash("content/blue/doc2.md"))))
|
||||
|
||||
|
Reference in New Issue
Block a user