@@ -28,8 +28,8 @@ func TestContentMapSite(t *testing.T) {
28
28
pageTempl := `
29
29
---
30
30
title: "Page %d"
31
- date: "2019-06-0%d "
32
- lastMod: "2019-06-0%d "
31
+ date: "2019-06-%02d "
32
+ lastMod: "2019-06-%02d "
33
33
categories: [%q]
34
34
---
35
35
@@ -55,7 +55,6 @@ draft: true
55
55
title: "Hugo Home"
56
56
cascade:
57
57
description: "Common Description"
58
-
59
58
---
60
59
61
60
Home Content.
@@ -64,24 +63,24 @@ Home Content.
64
63
b .WithContent ("blog/page1.md" , createPage (1 ))
65
64
b .WithContent ("blog/page2.md" , createPage (2 ))
66
65
b .WithContent ("blog/page3.md" , createPage (3 ))
67
- b .WithContent ("blog/bundle/index.md" , createPage (12 ))
66
+ b .WithContent ("blog/bundle/index.md" , createPage (4 ))
68
67
b .WithContent ("blog/bundle/data.json" , "data" )
69
- b .WithContent ("blog/bundle/page.md" , createPage (99 ))
70
- b .WithContent ("blog/subsection/_index.md" , createPage (3 ))
68
+ b .WithContent ("blog/bundle/page.md" , createPage (5 ))
69
+ b .WithContent ("blog/subsection/_index.md" , createPage (6 ))
71
70
b .WithContent ("blog/subsection/subdata.json" , "data" )
72
- b .WithContent ("blog/subsection/page4.md" , createPage (8 ))
73
- b .WithContent ("blog/subsection/page5.md" , createPage (10 ))
71
+ b .WithContent ("blog/subsection/page4.md" , createPage (7 ))
72
+ b .WithContent ("blog/subsection/page5.md" , createPage (8 ))
74
73
b .WithContent ("blog/subsection/draft/index.md" , draftTemplate )
75
74
b .WithContent ("blog/subsection/draft/data.json" , "data" )
76
75
b .WithContent ("blog/draftsection/_index.md" , draftTemplate )
77
- b .WithContent ("blog/draftsection/page/index.md" , createPage (12 ))
76
+ b .WithContent ("blog/draftsection/page/index.md" , createPage (9 ))
78
77
b .WithContent ("blog/draftsection/page/folder/data.json" , "data" )
79
- b .WithContent ("blog/draftsection/sub/_index.md" , createPage (12 ))
80
- b .WithContent ("blog/draftsection/sub/page.md" , createPage (13 ))
81
- b .WithContent ("docs/page6.md" , createPage (11 ))
82
- b .WithContent ("tags/_index.md" , createPageInCategory (32 , "sad" ))
83
- b .WithContent ("overlap/_index.md" , createPageInCategory (33 , "sad" ))
84
- b .WithContent ("overlap2/_index.md" , createPage (34 ))
78
+ b .WithContent ("blog/draftsection/sub/_index.md" , createPage (10 ))
79
+ b .WithContent ("blog/draftsection/sub/page.md" , createPage (11 ))
80
+ b .WithContent ("docs/page6.md" , createPage (12 ))
81
+ b .WithContent ("tags/_index.md" , createPageInCategory (13 , "sad" ))
82
+ b .WithContent ("overlap/_index.md" , createPageInCategory (14 , "sad" ))
83
+ b .WithContent ("overlap2/_index.md" , createPage (15 ))
85
84
86
85
b .WithTemplatesAdded ("layouts/index.html" , `
87
86
Num Regular: {{ len .Site.RegularPages }}|{{ range .Site.RegularPages }}{{ .RelPermalink }}|{{ end }}$
@@ -118,7 +117,7 @@ Pages: {{ range $blog.Pages }}{{ .RelPermalink }}|{{ end }}
118
117
Sections: {{ range $home.Sections }}{{ .RelPermalink }}|{{ end }}:END
119
118
Categories: {{ range .Site.Taxonomies.categories }}{{ .Page.RelPermalink }}; {{ .Page.Title }}; {{ .Count }}|{{ end }}:END
120
119
Category Terms: {{ $categories.Kind}}: {{ range $categories.Data.Terms.Alphabetical }}{{ .Page.RelPermalink }}; {{ .Page.Title }}; {{ .Count }}|{{ end }}:END
121
- Category Funny: {{ $funny.Kind}}; {{ $funny.Data.Term }}: {{ range $funny.Pages }}{{ .RelPermalink }}; |{{ end }}:END
120
+ Category Funny: {{ $funny.Kind}}; {{ $funny.Data.Term }}: {{ range $funny.Pages }}{{ .RelPermalink }}|{{ end }}:END
122
121
Pag Num Pages: {{ len .Paginator.Pages }}
123
122
Pag Blog Num Pages: {{ len $blog.Paginator.Pages }}
124
123
Blog Num RegularPages: {{ len $blog.RegularPages }}|{{ range $blog.RegularPages }}P: {{ .RelPermalink }}|{{ end }}
@@ -142,11 +141,11 @@ Draft5: {{ if (.Site.GetPage "blog/draftsection/sub/page") }}FOUND{{ end }}|
142
141
Main Sections: [blog]
143
142
Pag Num Pages: 9
144
143
145
- Home: Hugo Home|/|2019-06-08 |Current Section: /|Resources:
146
- Blog Section: Blogs|/blog/|2019-06-08 |Current Section: /blog|Resources:
147
- Blog Sub Section: Page 3 |/blog/subsection/|2019-06-03 |Current Section: /blog/subsection|Resources: application: /blog/subsection/subdata.json|
144
+ Home: Hugo Home|/|2019-06-15 |Current Section: /|Resources:
145
+ Blog Section: Blogs|/blog/|2019-06-11 |Current Section: /blog|Resources:
146
+ Blog Sub Section: Page 6 |/blog/subsection/|2019-06-06 |Current Section: /blog/subsection|Resources: application: /blog/subsection/subdata.json|
148
147
Page: Page 1|/blog/page1/|2019-06-01|Current Section: /blog|Resources:
149
- Bundle: Page 12 |/blog/bundle/|0001-01-01 |Current Section: /blog|Resources: application: /blog/bundle/data.json|page: |
148
+ Bundle: Page 4 |/blog/bundle/|2019-06-04 |Current Section: /blog|Resources: application: /blog/bundle/data.json|page: |
150
149
IsDescendant: true: true true: true true: true true: true true: true false: false false: false
151
150
IsAncestor: true: true true: true true: true true: true true: true true: true false: false false: false false: false false: false
152
151
IsDescendant overlap1: false: false
@@ -157,11 +156,11 @@ Draft5: {{ if (.Site.GetPage "blog/draftsection/sub/page") }}FOUND{{ end }}|
157
156
InSection: true: true false: false
158
157
Next: /blog/page3/
159
158
NextInSection: /blog/page3/
160
- Pages: /blog/page3 /|/blog/subsection /|/blog/page2 /|/blog/page1 /|/blog/bundle /|
161
- Sections: /blog /|/docs /|/overlap /|/overlap2 /|:END
159
+ Pages: /blog/subsection /|/blog/bundle /|/blog/page3 /|/blog/page2 /|/blog/page1 /|
160
+ Sections: /overlap2 /|/overlap /|/docs /|/blog /|:END
162
161
Categories: /categories/funny/; Funny; 12|/categories/sad/; Sad; 2|:END
163
162
Category Terms: taxonomy: /categories/funny/; Funny; 12|/categories/sad/; Sad; 2|:END
164
- Category Funny: term; funny: /blog/subsection/page4/;|/blog/page3/; |/blog/subsection/; |/blog/page2/; |/blog/page1/; |/blog/subsection/page5/;|/docs/page6/; |/blog/bundle/; |/blog/draftsection/page/; |/blog/draftsection/sub/; |/blog/draftsection/sub/page/;|/overlap2/; |:END
163
+ Category Funny: term; funny: /overlap2/|/docs/page6/ |/blog/draftsection/sub/page/ |/blog/draftsection/sub/ |/blog/draftsection/page/ |/blog/subsection/page5/|/blog/subsection/page4/ |/blog/subsection/ |/blog/bundle/ |/blog/page3/ |/blog/page2/|/blog/page1/ |:END
165
164
Pag Num Pages: 9
166
165
Pag Blog Num Pages: 4
167
166
Blog Num RegularPages: 4
0 commit comments