summaryrefslogtreecommitdiffstats
path: root/hugolib/page_unwrap.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page_unwrap.go')
-rw-r--r--hugolib/page_unwrap.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/page_unwrap.go b/hugolib/page_unwrap.go
index c3e1ce8dd..c22ff2174 100644
--- a/hugolib/page_unwrap.go
+++ b/hugolib/page_unwrap.go
@@ -16,6 +16,7 @@ package hugolib
import (
"fmt"
+ "github.com/gohugoio/hugo/common/types"
"github.com/gohugoio/hugo/resources/page"
)
@@ -31,6 +32,8 @@ func unwrapPage(in any) (page.Page, error) {
return v, nil
case pageWrapper:
return v.page(), nil
+ case types.Unwrapper:
+ return unwrapPage(v.Unwrapv())
case page.Page:
return v, nil
case nil: