diff options
Diffstat (limited to 'hugolib/page_paths.go')
-rw-r--r-- | hugolib/page_paths.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page_paths.go b/hugolib/page_paths.go index 4b523bd47..5e9f09ab8 100644 --- a/hugolib/page_paths.go +++ b/hugolib/page_paths.go @@ -74,7 +74,7 @@ type targetPathDescriptor struct { // and URLs for this Page. func (p *Page) createTargetPathDescriptor(t output.Format) (targetPathDescriptor, error) { if p.targetPathDescriptorPrototype == nil { - panic(fmt.Sprintf("Must run initTargetPathDescriptor() for page %q, kind %q", p.Title, p.Kind)) + panic(fmt.Sprintf("Must run initTargetPathDescriptor() for page %q, kind %q", p.title, p.Kind)) } d := *p.targetPathDescriptorPrototype d.Type = t @@ -271,9 +271,9 @@ func (p *Page) createRelativeTargetPath() string { if len(p.outputFormats) == 0 { if p.Kind == kindUnknown { - panic(fmt.Sprintf("Page %q has unknown kind", p.Title)) + panic(fmt.Sprintf("Page %q has unknown kind", p.title)) } - panic(fmt.Sprintf("Page %q missing output format(s)", p.Title)) + panic(fmt.Sprintf("Page %q missing output format(s)", p.title)) } // Choose the main output format. In most cases, this will be HTML. |