summaryrefslogtreecommitdiffstats
path: root/hugolib/site_url_test.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-09-20 17:03:43 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-09-20 17:03:43 -0700
commit52e8c7a0ac76f4aa1fff8ff30a6d5074bd459347 (patch)
treefcabd15f6b496589edcf56be200f865177606a70 /hugolib/site_url_test.go
parent784077da4dcc3476f61bbf99c5f873b71694dd64 (diff)
Section is determined by the source, not the url
This change allows for top level html content to exists.
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r--hugolib/site_url_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go
index b9c30fec4..badfa9e9e 100644
--- a/hugolib/site_url_test.go
+++ b/hugolib/site_url_test.go
@@ -2,6 +2,7 @@ package hugolib
import (
"bytes"
+ "github.com/spf13/hugo/source"
"github.com/spf13/hugo/target"
"html/template"
"io"
@@ -61,9 +62,9 @@ func (t *InMemoryAliasTarget) Publish(label string, permalink template.HTML) (er
return
}
-var urlFakeSource = []byteSource{
- {"content/blue/doc1.md", []byte(SLUG_DOC_1)},
- {"content/blue/doc2.md", []byte(SLUG_DOC_2)},
+var urlFakeSource = []source.ByteSource{
+ {"content/blue/doc1.md", []byte(SLUG_DOC_1), "blue"},
+ {"content/blue/doc2.md", []byte(SLUG_DOC_2), "blue"},
}
func TestPageCount(t *testing.T) {
@@ -74,7 +75,7 @@ func TestPageCount(t *testing.T) {
Target: target,
Alias: alias,
Config: Config{UglyUrls: false},
- Source: &inMemorySource{urlFakeSource},
+ Source: &source.InMemorySource{urlFakeSource},
}
s.initializeSiteInfo()
s.prepTemplates()