projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6fde8f
)
Fix typo-logic bug in GetPage
author
Vas Sudanagunta
<vas@commonkarma.org>
Thu, 19 Jul 2018 18:55:16 +0000
(14:55 -0400)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Thu, 19 Jul 2018 19:36:10 +0000
(21:36 +0200)
hugolib/page_collections.go
patch
|
blob
|
history
diff --git
a/hugolib/page_collections.go
b/hugolib/page_collections.go
index 3d7c862802e1152e1fd12754510aa3bcc9743568..41c88cd6252a69161f44deb39b598d9a899b1118 100644
(file)
--- a/
hugolib/page_collections.go
+++ b/
hugolib/page_collections.go
@@
-221,7
+221,7
@@
func (c *PageCollections) getPageNew(context *Page, ref string) (*Page, error) {
// Last try.
ref = strings.TrimPrefix(ref, "/")
-
context
, err := c.getFromCache(ref)
+
p
, err := c.getFromCache(ref)
if err != nil {
if context != nil {
@@
-230,7
+230,7
@@
func (c *PageCollections) getPageNew(context *Page, ref string) (*Page, error) {
return nil, fmt.Errorf("failed to resolve page: %s", err)
}
- return
context
, nil
+ return
p
, nil
}
func (*PageCollections) findPagesByKindIn(kind string, inPages Pages) Pages {